Skip to content

Instantly share code, notes, and snippets.

@AbdlrahmanSaberAbdo
Last active May 30, 2022 07:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save AbdlrahmanSaberAbdo/1afa6fe548a939859f23efa20cad3066 to your computer and use it in GitHub Desktop.
Save AbdlrahmanSaberAbdo/1afa6fe548a939859f23efa20cad3066 to your computer and use it in GitHub Desktop.
Some common and useful aliases in git that make you more efficient
[alias]
co = checkout
cob = checkout -b
coo = !git fetch && git checkout
br = branch
brd = branch -d
st = status
aa = add -A .
unstage = reset --soft HEAD^
cm = commit -m
amend = commit --amend -m
fix = commit --fixup
undo = reset HEAD~1
rv = revert
cp = cherry-pick
pu = !git push origin `git branch --show-current`
fush = push -f
ll = log --oneline
mg = merge --no-ff
rb = rebase
rbc = rebase --continue
rba = rebase --abort
rbs = rebase --skip
rom = !git fetch && git rebase -i origin/master --autosquash
save = stash push
pop = stash pop
apply = stash apply
rl = reflog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment