- Git - command to go back to the main master HEAD commit?
this post will show you the command you need to send on you git shell to go back to the last main master HEAD commit , Last Updated: Sun Jul 05, 2020
Wed Feb 01, 2017
Git Master HEAD Commit
to go back to the main (master) HEAD commit, all you have to do is send this command:
git commit master
thats it. you can use this simple command to go back to the last main head or master commit. i thought it was going to be very hard to swtich back to the last commit, but it turns out its very eash with this command thanks