Wednesday, July 4, 2012

How to pull specific commit

I want to pull specific commit to my local branch, instead of last commit.

git reset --hard <commit-ID>

will point the local branch head to commit-ID , irrespective of remote branch head.

No comments:

Post a Comment