Here's a little git problem that happened to me today, which used to be quite scary when I was first learning git but is actually easy to remedy as...
For further actions, you may consider blocking this person and/or reporting abuse
Thank you! Saved my a** :)
What if I have already sent the changes to remote
git reset --hard HEAD~X // where X is the total of commit to move back
or
git reset --hard a1b2c3d4 // simply provide the hash of the commit you want to revert back to..
and
git push origin master --force // change "master" to the branch you want to revert.
I will pray for you.
Thank you. Just what I wanted :)
Thanks so much!
I just created an account to like this post, and say big thanks!!
Guy! you just saved my life!
THANK YOU!!!!!
git cherry-pick -x abcdef1
option -x add a message link to source commit — useful for history. It look (cherry picked from commit abcdef1)
I signed up so i can tell you thank you
Thanks for the article! Helped me get my local commit back on track to the correct branch!