Git - git reset
What is the purpose of the 'git reset' command?
Be careful with that last command: in addition to losing any changes in the working directory, it will also remove all later commits from this branch. If this branch is the only branch containing those commits, they will be lost. Also, don’t use git reset on a publicly-visible branch that other developers pull from, as it will force needless merges on other developers to clean up the history. If you need to undo changes that you have pushed, use 'git revert' instead.
page revision: 0, last edited: 20 Mar 2016 07:43