Last active
December 7, 2023 20:08
-
-
Save jpann/67dd44682b05448fb13e529fb6c47094 to your computer and use it in GitHub Desktop.
.gitconfig
This file contains 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
[init] | |
defaultBranch = main | |
[filter "lfs"] | |
clean = git-lfs clean -- %f | |
smudge = git-lfs smudge -- %f | |
process = git-lfs filter-process | |
required = true | |
[push] | |
default = simple | |
[core] | |
ignorecase = false | |
autocrlf = true | |
compression = 0 | |
packedGitLimit = 512m | |
packedGitWindowSize = 512m | |
excludefile = ~/.gitignore | |
fileMode = false | |
[alias] | |
co = checkout | |
cob = checkout -b | |
coo = !git fetch && git checkout | |
br = branch | |
brd = branch -d | |
brD = branch -D | |
merged = branch --merged | |
ci = commit | |
s = status -s | |
st = status | |
aa = add -A . | |
del = branch -D | |
save = !git add -A && git commit -am 'chore: commit save point' | |
done = !git push origin HEAD | |
lg = !git log --pretty=format:\"%C(magenta)%h%Creset -%C(red)%d%Creset %s %C(dim green)(%cr) [%an]\" --abbrev-commit -30 | |
cm = commit -am | |
acp = "!f() { git add . && git commit -m $@ && git push origin HEAD; }; f" | |
aacm = !git add -A . && git commit | |
aacm = !git add -A . && git commit -m | |
dev = !git checkout dev && git pull origin dev | |
main = !git checkout main && git pull origin | |
po = push origin | |
pod = push origin dev | |
pom = push origin main | |
unstage = reset --soft HEAD^ | |
undo = reset HEAD~1 --mixed | |
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate | |
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat | |
f = "!git ls-files | grep -i" | |
gr = grep -Ii | |
la = "!git config -l | grep alias | cut -c 7-" | |
last = log -1 HEAD --stat | |
se = !git rev-list --all | xargs git grep -F | |
supdate = submodule update --remote --merge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment