Skip to content

Instantly share code, notes, and snippets.

View im-coder-lg's full-sized avatar
🌴
On vacation

LG im-coder-lg

🌴
On vacation
View GitHub Profile
@im-coder-lg
im-coder-lg / gist:8b3e7994cf874e34179f76563f9046cc
Last active September 3, 2021 03:36 — forked from dsci/gist:1347672
Delete commits from repository. Upgraded version
#!/bin/bash
read -p "Git Commit SHA hashcode:" $commit
# First, check out the commit you wish to go back to (get sha-1 from git log)
git reset --hard $commit
# Then do a forced update.
git push origin +$commit^:develop