Created
May 3, 2021 13:35
-
-
Save clairechabas/54ce4ff6816af90dae798a3cc047f738 to your computer and use it in GitHub Desktop.
Git Aliases
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
# This is Git's per-user configuration file. | |
[core] | |
repositoryformatversion = 0 | |
filemode = true | |
bare = false | |
logallrefupdates = true | |
editor = vim | |
[user] | |
name = [YOUR_NAME] | |
email = [YOUR_EMAIL] | |
[rerere] | |
enabled = true | |
[alias] | |
wh = !git ls-files | grep -i | |
st = status | |
co = checkout | |
cp = cherry-pick | |
root = checkout master | |
ba = branch -v -a | |
pushf = push --force-with-lease | |
del = branch -D | |
blog = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)%Creset' --abbrev-commit | |
slog = log --pretty=oneline --abbrev-commit | |
nlog = log --name-status | |
dlog = log -p | |
ru = remote update | |
ci = commit -va | |
fix = commit --amend | |
br = branch -v | |
rw = reset --hard | |
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short | |
squash = !git rebase -i `$(git merge-base origin/master HEAD)` | |
stats = !git diff origin/master..`$(git rev-parse --symbolic-full-name --abbrev-ref HEAD)` --shortstat | |
rb = !git fetch -p && git rebase origin/master | |
rbc = !git rebase --continue | |
rbs = !git rebase --skip | |
rba = !git rebase --abort | |
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit | |
[color] | |
ui = auto | |
[merge] | |
summary = true | |
[push] | |
default = current |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment