Created
March 16, 2019 21:51
-
-
Save benjbaron/e9dc235afd5d288853527ceab625cdb3 to your computer and use it in GitHub Desktop.
.gitconfig
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
[github] | |
user = benjbaron | |
[push] | |
default = current | |
[pull] | |
rebase = true | |
[alias] | |
st = status | |
stp = status --porcelain | |
ci = commit --amend --no-edit | |
br = branch | |
co = checkout | |
pfl = push --force-with-lease | |
rz = reset --hard HEAD | |
pullr = pull --rebase | |
unstage = reset HEAD | |
lol = log --graph --decorate --pretty=oneline --abbrev-commit | |
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all | |
lpush = "!git --no-pager log origin/$(git currentbranch)..HEAD --oneline" | |
lpull = "!git --no-pager log HEAD..origin/$(git currentbranch) --oneline" | |
lg = log --color --graph --all --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
whatsnew = "!git diff origin/$(git currentbranch)...HEAD" | |
whatscoming = "!git diff HEAD...origin/$(git currentbranch)" | |
currentbranch = "!git branch | grep \"^\\*\" | cut -d \" \" -f 2" | |
review = "!git log --name-only --grep=\"#$1\" #" | |
delete-merged = !bash -c '\ | |
REMOTE=$1 && \ | |
REMOTE=${REMOTE:="origin"} && \ | |
echo "Fetching $REMOTE" && \ | |
git fetch $REMOTE --prune && \ | |
git branch -vv | grep "gone]" | awk \"{ print \\$1 }\" | xargs git branch -d' - | |
[color] | |
branch = auto | |
diff = auto | |
status = auto | |
interactive = auto | |
[user] | |
email = [email protected] | |
name = Benjamin Baron | |
[filter "lfs"] | |
clean = git-lfs clean -- %f | |
smudge = git-lfs smudge -- %f | |
process = git-lfs filter-process | |
required = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment