0
I need help deleting commits I made on github
Git commits
2 Antworten
+ 6
# First, check out the commit you wish to go back to (get sha-1 from git log)
git reset --hard 9d3c3a0caa7f7b35ef15adb96fc80fcbb59ac72a
# Then do a forced update.
git push origin +9d3c3a0caa7f7b35ef15adb96fc80fcbb59ac72a^:develop
# Push specific commit
git push origin 9d3c3a0caa7f7b35ef15adb96fc80fcbb59ac72a:develop
Source :https://gist.github.com/dsci/1347672/da3dbda654fb0947aec4a43218bd64c2acdf7871
+ 1
Thanks
I will checkout the link