Skip to content

Instantly share code, notes, and snippets.

View karabulut's full-sized avatar

Yunus Emre Karabulut karabulut

View GitHub Profile
git tag <version_name>
git checkout <BRANCH>
git checkout <B2>
git merge <B1>
git branch <BRANCH>
git checkout <new><base>
git branch -d <branch>
@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 revert HEAD (Creates a new commit)
@karabulut
karabulut / gist:1a0763dd4f79603856ced2698708171b
Created December 19, 2020 11:50
Spesific Commit Revert
git revert $id (Creates a new commit)
git commit -a --amend (after editing the broken files)