Created
October 24, 2022 12:33
-
-
Save jbfarez/0a279ee5b9503ac0374e0d17aec2aad0 to your computer and use it in GitHub Desktop.
Gitconfig
This file contains hidden or 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
[user] | |
name = {{FULL_NAME}} | |
email = {{EMAIL}}@ankorstore.com | |
signingkey = {{GPG_KEY}} | |
[core] | |
excludesfile = ~/.gitignore | |
[branch] | |
autosetuprebase = always | |
[color] | |
ui = true | |
interactive = auto | |
[color.status] | |
changed = yellow bold | |
added = green bold | |
removed = red bold | |
untracked = cyan bold | |
[color.branch] | |
current = green bold | |
local = yellow bold | |
remote = red bold | |
[color.diff] | |
frag = magenta bold | |
old = red bold | |
new = green bold | |
[alias] | |
lol = log --graph --decorate --pretty=format:'%C(magenta)%h%C(reset) -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(cyan)<%an>%Creset' --abbrev-commit | |
lola = log --graph --decorate --pretty=format:'%C(magenta)%h%C(reset) -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(cyan)<%an>%Creset' --abbrev-commit --all | |
st = status | |
ci = commit | |
br = branch | |
co = checkout | |
canoe = commit --amend -a --no-edit | |
lpush = "!git log origin/$(git currentbranch)..HEAD" | |
lpull = "!git log HEAD..origin/$(git currentbranch)" | |
whatsnew = "!git diff origin/$(git currentbranch)...HEAD" | |
whatscoming = "!git diff HEAD...origin/$(git currentbranch)" | |
currentbranch = "!git branch | grep \"^\\*\" | cut -d \" \" -f 2" | |
cam = commit -a -m | |
w = whatchanged | |
pull = pull --rebase | |
update-tags = fetch --prune origin +refs/tags/*:refs/tags/* | |
[push] | |
default = simple | |
[pull] | |
rebase = true | |
[commit] | |
gpgsign = true | |
[gpg] | |
program = /opt/homebrew/bin/gpg # Might have to be changed depending on your platform |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment