Friday, 15 April 2011

git, trying to pull a specific commit from remote, not the most recent one -


How can I pull up a special commitment, or, after a particular commitment, pull the repo in the way it was ? I have no branch, I am just running the master, and I am the only one using this repo.

Checkout what you want to see again:

  Git pull & amp; GIT co & lt; Commit & gt;   

Or you can pull and then reset the head in a separate comma:

  git pull & amp; GIT reset - Hard & lt; Commit & gt;   

I do not think there is only one way to draw a special commitment because it is easy if necessary, switch to switch to another.

No comments:

Post a Comment