Skip to content

Instantly share code, notes, and snippets.

@cosmo0
Last active March 22, 2023 13:21
Show Gist options
  • Save cosmo0/02a37cc995bfbea17651a7b004c3ec07 to your computer and use it in GitHub Desktop.
Save cosmo0/02a37cc995bfbea17651a7b004c3ec07 to your computer and use it in GitHub Desktop.
[user]
name =
email =
[gui]
recentrepo =
[core]
autocrlf = true
excludesfile = ~/.gitignore
[diff]
tool = bc3
[difftool]
prompt = false
[difftool "bc3"]
path = c:/program files (x86)/beyond compare 3/bcomp.exe
[merge]
tool = bc3
[mergetool]
prompt = false
[mergetool "bc3"]
path = c:/program files (x86)/beyond compare 3/bcomp.exe
[push]
default = simple
autoSetupRemote = true
[alias]
s = status
c = commit -m
dt = difftool
mt = mergetool
dtc = difftool --cached
amend = commit --amend
aa = add .
co = checkout
cb = checkout -b
rollback = reset --soft HEAD^
f = fetch
r = rebase
fr = "!git fetch ; git rebase"
frp = "!git fetch ; git rebase; git push"
cleanup = "!git reset ; git checkout . ; git clean -df"
dance = "!git stash ; git fetch ; git rebase ; git stash pop"
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cd) %C(bold blue)<%an>%Creset' --abbrev-commit --date=format-local:%c
changes = log --pretty=format:'%Cred%h%Creset %C(yellow)%d%Creset %s %Cgreen(%cd)%Creset %C(bold blue)<%an>%Creset' --decorate --numstat --date=format-local:%c
files = show --pretty=format:'%Cred%h%Creset %C(yellow)%d%Creset %s %Cgreen(%cr)%Creset %C(bold blue)<%cn>%Creset' --name-status
sup = svn rebase
sco = svn dcommit
slg = svn log --oneline --show-commit
ig = update-index --assume-unchanged
unig = update-index --no-assume-unchanged
assumed = "!git ls-files -v | grep ^h | cut -c 3-"
rbi = rebase --interactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment