I’m back with another post. First post of this month. 🙂
This post is intended to be a “post it”.. I mean, a kinda catalog just to help you remember basic Git commands, but essential. So, let’s be straight as I always tend to be.
Commit all changed files at once:
$ git commit -a -m 'comment for all modified files'
Save changes into remote repository (master branch):
$ git push origin -u master
Change local repository to master branch:
$ git checkout
Download from remote repository:
$ git pull
Fetch a specific commit from remote repository (The last argument for ‘fetch’ is an SHA1 key. Check your remote repository to figure out.):
$ git fetch git://my_repository/code.git c89d9088cf645cc7235906a59b444b12fbbb563d $ git checkout FETCH_HEAD
Hope you enjoyed it,
That’s all, ’till next time.