-
Notifications
You must be signed in to change notification settings - Fork 7
Overwriting your local changes with remote branch
bizzinho edited this page Jan 13, 2012
·
5 revisions
If you have local (commited, or not) changes and want to get rid of them (maybe you were just trying something) and go back to a previous version
open gitk (e.g. from git bash: "git gui" --> show all branches)
right click on the commit you want to back to--> "reset master to here" --> "hard"
Do not go back further than the remote branch, as this will cause major havoc and a bunch of kittens will be executed!
If you hate small, helpless, innocent puppies: don't do it anyway.
et voila!