Skip to content

Instantly share code, notes, and snippets.

View karabulut's full-sized avatar

Yunus Emre Karabulut karabulut

View GitHub Profile
git status
git checkout <ID><file>
git commit -a --amend (after editing the broken files)
@karabulut
karabulut / gist:1a0763dd4f79603856ced2698708171b
Created December 19, 2020 11:50
Spesific Commit Revert
git revert $id (Creates a new commit)
git revert HEAD (Creates a new commit)
@karabulut
karabulut / gist:de130d3e9c488cc537761c771e812c82
Created December 19, 2020 11:48
Git Revert - Committed
git checkout -f | git reset --hard (you cannot undo a hard reset)
git branch -d <branch>
git checkout <new><base>