Last active
May 30, 2022 07:21
-
-
Save AbdlrahmanSaberAbdo/1afa6fe548a939859f23efa20cad3066 to your computer and use it in GitHub Desktop.
Some common and useful aliases in git that make you more efficient
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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