Skip to content

Instantly share code, notes, and snippets.

@RafalSladek
Created March 8, 2021 13:51
Show Gist options
  • Save RafalSladek/e918a272cf754c8e54d90563401e7f45 to your computer and use it in GitHub Desktop.
Save RafalSladek/e918a272cf754c8e54d90563401e7f45 to your computer and use it in GitHub Desktop.
my git config
➜ ~ cat .gitconfig
[user]
name = UserName
email = Usernamne@email.com
[push]
default = matching
[ui]
color = auto
[alias]
pr = pull --rebase
pra = pull --rebase --autostash
st = status
pl = log --graph --pretty=\"%Cgreen%h%Creset – %ai – %s (%Cblueby %cn%Creset)\"
slog = log --pretty=\"%Cgreen%h%Creset – %ai – %s (%Cblueby %cn%Creset)\" HEAD~15..HEAD
co = checkout
hl = log --pretty=\"%h\"
br = branch
cl = clone
ci = commit
unstage = reset HEAD --
last = log -1 HEAD
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%aN, %cr)%Creset' --abbrev-commit --date=relative
pushf = push --force-with-lease
cia = commit --amend --no-edit --no-verify
[branch]
autosetuprebase = always
[http]
sslVerify = true
[core]
autocrlf = input
editor = vim
excludesfile = ~/.gitignore
[merge]
tool = kdiff3
[mergetool]
path = /usr/local/bin/kdiff3
trustExitCode = false
keepBakcup = false
[pull]
rebase = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment