Last active
August 17, 2020 07:37
-
-
Save vchirikov/2fda1a7fa9e73a87641968351bdc5126 to your computer and use it in GitHub Desktop.
Git config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = vchirikov | |
repositoryformatversion = 0 | |
filemode = false | |
bare = false | |
logallrefupdates = true | |
symlinks = false | |
ignorecase = true | |
hideDotFiles = dotGitOnly | |
[core] | |
autocrlf = input | |
sparseCheckout = true | |
editor = code --wait | |
longpaths = true | |
hooksPath = /dev/null | |
[alias] | |
# Line of code - diff with empty tree | |
loc = diff --shortstat 4b825dc642cb6eb9a060e54bf8d69288fbee4904 | |
f = fetch --force --tags --prune --prune-tags --jobs=12 --progress --all | |
# br = branch-remote | |
br = "!f(){ fetch --force --tags --prune --prune-tags --jobs=12 --all --quiet && git checkout -b $1 remotes/origin/$2 --no-track; };f" | |
pf = push --force-with-lease | |
# return curent branchname | |
cwd = rev-parse --abbrev-ref HEAD | |
am = commit --amend --no-edit | |
lg = log --color --oneline -n 10 | |
lgn = log --color --oneline -n | |
it = !git init && git commit -m root --allow-empty | |
st = status --short --branch | |
filelog = log -u | |
flg = log -u | |
r = reset | |
ri = !git rebase -i HEAD~$1 && echo Rebase interactive, back | |
rc = rebase --continue | |
ra = rebase --abort | |
rs = rebase --skip | |
rst =!git reset --soft HEAD~$1 && echo reset soft back | |
regrp =!git reset --soft HEAD~$1 && echo reset soft back | |
regroup =!git reset --soft HEAD~$1 && echo reset soft back | |
stashes = stash list | |
remotes = remote -v | |
pruner = !git prune --expire=now && git reflog expire --expire-unreachable=now --rewrite --all | |
repacker = !git repack -a -d -f --depth=300 --window=300 --window-memory=1g | |
go = switch | |
# branch | |
branches = branch --all -vv | |
bls = branch --all -vv | |
brm = branch --delete | |
brmf = branch -D | |
bmv = branch --move | |
branch-remote-rm = push --delete | |
brrrm = push --delete | |
bclean = "!f() { git branch --merged ${1-master} | grep -v " ${1-master}$" | xargs -r git branch -d; }; f" | |
hide = update-index --assume-unchanged | |
unhide = update-index --no-assume-unchanged | |
unhide-all = !git ls-files -v | grep '^[a-z]' | cut -c3- | xargs git update-index --no-assume-unchanged -- | |
hidden = !git ls-files -v | grep '^[a-z]' | cut -c3- | |
gh-clean = !gh-clean-notifications | |
[extensions] | |
worktreeConfig = true | |
[fetch] | |
prune = true | |
pruneTags = true | |
[rebase] | |
autoStash = true | |
autosquash = true | |
[worktree] | |
guessRemote = true | |
[push] | |
default = current | |
followTags = true | |
[url "https://github.com/"] | |
insteadOf = github: | |
[url "https://github.com/"] | |
insteadOf = gh: | |
[url "https://github.com/vchirkov"] | |
insteadOf = my: | |
[diff] | |
renameLimit = 9999999 | |
[interactive] | |
useBuiltin = true | |
singleKey = true | |
[feature] | |
manyFiles = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment