Skip to content

Instantly share code, notes, and snippets.

@debu999
Created May 27, 2023 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save debu999/e6dd403a2fcc9b89b86ddf09c02b18b8 to your computer and use it in GitHub Desktop.
Save debu999/e6dd403a2fcc9b89b86ddf09c02b18b8 to your computer and use it in GitHub Desktop.
gitconfig
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
[user]
name = DDDD PPPP
email = aaa_bbb@ccc.com
[core]
autocrlf = Input
[alias]
lga = log --all --oneline --decorate --graph
lg = log --all --color --graph --date=format:'%Y%m%d %H:%M' --pretty=tformat:'%C(magenta)<%ad>%Creset: %Cgreen%H%Creset %C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
br = branch --all
dh = diff HEAD --name-status
lgs = log --all --color --graph --date=format:'%Y%m%d %H:%M' --pretty=tformat:'%C(magenta)<%ad>%Creset: %Cgreen%HD%Creset $s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --name-status | (awk 'ORS=NR%3?" ":"\n"')
po = push --origin
publish = "!git push --set-upstream origin $(git branch --show-current)"
pa = pull --all
url = config --get remote.origin.url
pta = push origin --tags
pt = push origin
dell = branch -D
delr = push origin --delete
rc = rebase --continue
ft = fetch
ftp = fetch --tags --prune
pr = pull --rebase
co = checkout
cb = checkout
wd = diff --word-diff
so = remote show origin
st = status
conf = config
sh = show
cm = checkout main
ci = commit -a
ad = add
fo = fetch origin
[pull]
rebase = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment