Friday, December 21, 2012

Undo last commit and re-commit


http://stackoverflow.com/questions/927358/git-undo-last-commit
$ git reset --soft HEAD^      (1)
$ git commit -c ORIG_HEAD     (2)

No comments:

Post a Comment