Skip to content

Instantly share code, notes, and snippets.

View onkar27's full-sized avatar
👋

Onkar J. Sathe onkar27

👋
View GitHub Profile
@onkar27
onkar27 / gist:ef7d441847b8c8da8dac6b7f388fff22
Created July 23, 2018 17:39 — forked from dsci/gist:1347672
Delete commits from repository.
# 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 -f