Last active
February 1, 2023 23:34
-
-
Save DuaelFr/5663854 to your computer and use it in GitHub Desktop.
Useful git config
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
[alias] | |
a = add | |
aa = add -A | |
ac = "!f() { curl $@ | git apply --index; }; f" | |
ac3 = "!f() { curl $@ | git apply -3 --index; }; f" | |
amend = commit --amend -C HEAD | |
ap = add -p | |
app = apply --index | |
br = branch | |
cb = checkout -b | |
cc = !git rh core && git co core && git clean -fd core | |
ci = commit | |
cim = commit -m | |
cl = clone | |
co = checkout | |
cp = cherry-pick | |
df = diff | |
dh = diff HEAD | |
dic = diff --cached | |
go = checkout | |
ol = log --oneline | |
p = format-patch --stdout | |
pg = "!f() { push origin $1:refs/for/$2; }; f" | |
pl = pull | |
plom = pull origin master | |
pom = push origin master | |
pomp = push origin master:preprod | |
poml = push origin master:prod | |
poa = push origin --all | |
rb = rebase | |
rh = reset HEAD | |
sl = stash list | |
sp = stash pop | |
ss = stash save | |
st = status | |
ignore = update-index --assume-unchanged | |
unignore = update-index --no-assume-unchanged | |
ignored = !git ls-files -v | grep '^h' | |
who = shortlog -sne | |
graph = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all | |
[color] | |
ui = true | |
[core] | |
autocrlf = false | |
safecrlf = false | |
ignorecase = false | |
excludesfile = ~/.gitignore | |
[branch] | |
autosetuprebase = always | |
[diff] | |
renames = copies | |
algorithm = patience | |
[push] | |
default = simple | |
[merge "theirs"] | |
driver = true | |
[diff "nodiff"] | |
command = /bin/true |
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
### Generic files to ignore | |
*~ | |
*.lock | |
*.swp | |
*.out | |
*.patch | |
*.log | |
*.sql | |
*.sqlite | |
### OS junk files | |
.DS_Store | |
.DS_Store? | |
*.DS_Store | |
._* | |
.Spotlight-V100 | |
.Trashes | |
ehthumbs.db | |
### Windows junk files | |
[Tt]humbs.db | |
*.lnk | |
### Patch/diff artifacts. | |
*.patch | |
*.diff | |
*.orig | |
*.rej | |
interdiff*.txt | |
### Other SCM | |
.svn | |
### emacs artifacts. | |
*~ | |
\#*\# | |
### VI swap file | |
*.swp | |
### phpStorm | |
.idea | |
### Eclipse based | |
.buildpath | |
.settings | |
.project | |
### Netbeans | |
nbproject | |
## Sass Maps | |
*.css.map |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Neat!