Skip to content

Instantly share code, notes, and snippets.

@gimKondo
Last active March 4, 2019 04:29
Show Gist options
  • Save gimKondo/f0d8400edc0453dfa198fcddf17b38ca to your computer and use it in GitHub Desktop.
Save gimKondo/f0d8400edc0453dfa198fcddf17b38ca to your computer and use it in GitHub Desktop.
[user]
name = MyName
email = MyMailAddres
[core]
excludesfile = ~/gitconf/.global_gitignore
attributesfile = ~/gitconf/attributes
[merge]
ff = false
[pull]
ff = only
[fetch]
prune = true
[push]
default = simple
[diff "xlsx"]
textconv = git-xlsx-textconv
[pager]
log = diff-highlight | less -FX
reflog = diff-highlight | less -FX
show = diff-highlight | less -FX
diff = diff-highlight | less -FX
[alias]
alias = config --get-regexp 'alias.*'
st = status
sta = status -uall
co = checkout
work = checkout -b
unstage = reset HEAD
cm = commit
logtips = log --date=local --pretty='format:%C(yellow)%h %C(green)%cd %C(cyan)%an%C(red)%d %C(reset)%s' -16
lgt = log --date=local --pretty='format:%C(yellow)%h %C(green)%cd %C(cyan)%an%C(red)%d %C(reset)%s' -10
lgtopo = log --date=local --topo-order --pretty='format:%C(yellow)%h %C(green)%cd %C(cyan)%an%C(red)%d %C(reset)%s' -10
slog = log --no-merges --date=local --pretty='format:%C(yellow)%h %C(green)%cd %C(cyan)%an%C(red)%d %C(reset)%s' -10
rb = rebase
rbi = rebase -i
br = branch
bra = branch -a
br-feature = branch -a --list "*feature/*" # show feature branches list
br-clear = "!f() { git branch -d $1; git push origin :$1; };f"
mg-revert = revert -m 1
df = diff
df1 = diff HEAD~
df2 = diff HEAD~2
df3 = diff HEAD~3
df-isc = diff --ignore-space-change
df-files = diff-tree --no-commit-id --name-only -r
ranking = "!f() { git shortlog -sn --no-merges --after='date +%Y/%m/01' --before='date +%Y/%m/%d' | cat -n; }; f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment