Skip to content

Instantly share code, notes, and snippets.

@VencaV
Last active August 5, 2022 13:00
Show Gist options
  • Save VencaV/7d09daebe3841be3a796fadf8e9fd248 to your computer and use it in GitHub Desktop.
Save VencaV/7d09daebe3841be3a796fadf8e9fd248 to your computer and use it in GitHub Desktop.
[core]
autocrlf = input
safecrlf = false
excludesfile = %USERPROFILE%\\.gitignore
fileMode = false
[user]
name = Vaclav Vracovsky
email = vracovsky@shoptet.cz
[alias]
p = push
f = fetch
st = status
cm = commit
cma = commit --amend
br = branch
co = checkout
cp = cherry-pick
df = diff
rb = rebase
rbi = rebase -i
rbc = rebase --continue
rh = reset --hard
# graph for current branch
l = log --graph --decorate --pretty=oneline --abbrev-commit
# graph for all branches
ll = log --graph --decorate --pretty=oneline --abbrev-commit --all
# log for current branch showing diffs (-m is for showing mergecommits too)
ld = log -p -m
# log for current branch showing summary of changed files (-m is for showing mergecommits too)
ls = log --stat -m
# number of commits for each person
stats = shortlog -n -s --no-merges
# shows local > tracked remote
brt = for-each-ref --format=\"%(refname:short) > %(upstream:short)\" refs/heads
# get upstream tracked branch or error
brtracked = rev-parse --symbolic-full-name --abbrev-ref=strict HEAD@{u}
[remote "origin"]
# git push -> push current HEAD into tracked remote branch
push = HEAD
[diff]
mnemonicprefix = true
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = green
changed = yellow
untracked = cyan
[pull]
rebase = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment