Skip to content

Instantly share code, notes, and snippets.

@eness
Created October 9, 2021 23:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eness/19e1685358cc01c5a49127447a077810 to your computer and use it in GitHub Desktop.
Save eness/19e1685358cc01c5a49127447a077810 to your computer and use it in GitHub Desktop.
Github Repository'den commit silmek
# öncelikle github repo üzerinde gitmek istediğiniz commit'in sha1 değerini alın
git reset --hard 9d3c3a0caa7f7b35ef15adb96fc80fcbb59ac72a
# force update
git push origin +9d3c3a0caa7f7b35ef15adb96fc80fcbb59ac72a^:develop
# push commit
git push origin 9d3c3a0caa7f7b35ef15adb96fc80fcbb59ac72a:develop -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment