Thursday, October 18, 2012

Reverting git commit

Reverting - git commit - $ git commit -a - Commit mistake $ git reset --soft HEAD^ - Revert the commit $ vi - Do what you need to do, any additional changes $ git add . - as usual $ git commit -c ORIG_HEAD - Now, Good intentional commit

No comments: