- Forums
- Scripts
- 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 [4646], Last Updated: Mon Jun 24, 2024
webune
Wed Feb 01, 2017
0 Comments
605 Visits
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