Wednesday, March 3, 2010

GIT commands that I use

git reset HEAD^ --hard
Rolled back the latest commit and removed the additions/modifications/deletions made in the latest commit


git reset HEAD --hard
Removed un-commited changes





git pull origin/gitURI master
basic pull operation

git branch --no-track 
created a branch without affiliation to any remote public repo branch i.e I must always specify the remote branch to push to/pull from.

good:
http://www.gitready.com/beginner/2009/03/09/remote-tracking-branches.html

No comments:

Post a Comment