Last active
January 30, 2023 00:59
-
-
Save luiscoms/11289726 to your computer and use it in GitHub Desktop.
My 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 = Luis Fernando Gomes | |
email = [email protected] | |
[core] | |
ignorecase = false | |
[push] | |
default = current | |
[pull] | |
rebase = false | |
[url "https://"] | |
insteadOf = git:// | |
[color] | |
ui = auto | |
# diff = auto | |
# status = auto | |
# branch = auto | |
# interactive = auto | |
# pager = true | |
#[color "status"] | |
# added = green | |
# changed = red bold | |
# untracked = magenta bold | |
#[color "branch"] | |
# remote = yellow | |
[gitflow "branch"] | |
master = master | |
develop = develop | |
[gitflow "prefix"] | |
feature = feature/ | |
bugfix = bugfix/ | |
release = release/ | |
hotfix = hotfix/ | |
support = support/ | |
versiontag = | |
[alias] | |
mr = !sh -c 'git fetch $1 merge-requests/$2/head:mr-$1-$2 && git checkout mr-$1-$2' - | |
co = checkout | |
ba = branch -a | |
st = status | |
cm = commit -m | |
l = log --graph --all --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(white)- %an, %ar%Creset' | |
ll = log --stat --abbrev-commit | |
lg = log --color --graph --pretty=format:'%C(bold white)%h%Creset -%C(bold green)%d%Creset %s %C(bold green)(%cr)%Creset %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | |
llg = log --color --graph --pretty=format:'%C(bold white)%H %d%Creset%n%s%n%+b%C(bold blue)%an <%ae>%Creset %C(bold green)%cr (%ci)' --abbrev-commit | |
d = diff | |
develop = checkout develop | |
master = checkout master | |
del-merged = ! git branch --merged | grep -v master | grep -v develop | grep -v '* ' | xargs -r git branch -d | |
fa = !sh -c 'git fetch -p && git del-merged && git ba' - | |
[init] | |
templateDir = /Users/luiscoms/.git-template | |
defaultBranch = main | |
[filter "lfs"] | |
process = git-lfs filter-process | |
required = true | |
clean = git-lfs clean -- %f | |
smudge = git-lfs smudge -- %f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment