Skip to content

Instantly share code, notes, and snippets.

@akochepasov
Created October 18, 2025 19:54
Show Gist options
  • Save akochepasov/510c0341f3449e87e3b9f5c0df595934 to your computer and use it in GitHub Desktop.
Save akochepasov/510c0341f3449e87e3b9f5c0df595934 to your computer and use it in GitHub Desktop.
git config
[user]
name = akochepasov
[credential]
helper = cache
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[core]
editor = vim
#editor = code -n -w # VS Code
whitespace = trailing-space
[stash]
pager = less
[color]
ui = auto
[color "branch"]
current = yellow bold
local = green bold
remote = cyan bold
[rerere]
enabled = 1
autoupdate = 1
[fetch]
prune = true
[pull]
rebase = true
[push]
default = current
autoSetupRemote = true
[sendpack]
sideband = false
[alias]
############
a = add
#############
br = branch
brl = branch --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(contents:subject) %(color:green)(%(committerdate:relative)) [%(authorname)]' --sort=-committerdate
#############
cp = cherry-pick
cpa = cherry-pick --abort
cpc = cherry-pick --continue
#############
can = commit --amend --no-edit
fix = commit --fixup
#############
curr = branch --show-current
#############
ds = diff --staged
#############
gr = grep -I
ls = ls-files
#############
ll = log --decorate --pretty=oneline --abbrev-commit -10
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
lg = log --graph --pretty=format:\"%C(magenta)%h%Creset -%C(red)%d%Creset %s %C(dim green)(%cr) [%an]\" --abbrev-commit -30
hs = log --pretty='%C(yellow)%h %C(cyan)%ad %C(white)%s%C(reset) - [%an]%C(reset)' --date-order --graph --date=short -10
logemail = log --graph --pretty=\"tformat:%C(yellow)%h %C(cyan)%ad %C(green)%<(30,trunc)%ae ${TEXT}%s%C(reset)%C(auto)%d\"
contributors = shortlog --summary --numbered
#############
co = checkout
cob = checkout -b
#############
rb = rebase
rba = rebase --abort
rbc = rebase --continue
rbi = rebase --interactive --autosquash
rbs = rebase --skip
#############
st = status -sb
stashes = stash list
#############
done = !git push origin HEAD
#############
sw = switch
swp = switch -
#############
git = !git
aliases = !git config -l | grep alias | cut -c 7-
whois = !sh -c 'git log -i -1 --author=\"$1\" --pretty=\"format:%an <%ae>\"' -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment