Created
July 16, 2023 14:23
-
-
Save MM25Zamanian/4a90a63f8e2481311cfb56dd65a50c40 to your computer and use it in GitHub Desktop.
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
[alias] | |
c = commit -m | |
ca = commit -am | |
cl = clone | |
cl1 = clone --depth=1 | |
cb = "!git fetch -p && for branch in $(git for-each-ref --format '%(refname) %(upstream:track)' refs/heads | awk '$2 == \"[gone]\" {sub(\"refs/heads/\", \"\", $1); print $1}'); do git branch -D $branch; done" # clean branch | |
pl = pull --prune --progress --autostash --rebase | |
p = push | |
pp = push --prune | |
pa = push --all | |
pt = push --tags | |
b = branch | |
ba = branch -avv | |
bd = push origin --delete | |
s = status -s | |
m = merge | |
r = rebase | |
rs = reset | |
co = checkout | |
f = flow | |
d = diff --color --color-words --abbrev | |
l = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit -- | |
# Show the diff between the latest commit and the current state | |
df = !"git diff-index --quiet HEAD -- || clear; git --no-pager diff --patch-with-stat" | |
ru = rebase-update # depot_tools specific | |
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short | |
type = cat-file -t | |
dump = cat-file -p | |
[help] | |
autocorrect = 1 | |
[push] | |
default = current | |
# so much color | |
[color] | |
ui = always | |
[color "diff"] | |
meta = yellow bold | |
commit = green bold | |
frag = magenta bold | |
old = red bold | |
new = green bold | |
whitespace = red reverse | |
[color "diff-highlight"] | |
oldNormal = red bold | |
oldHighlight = "red bold 52" | |
newNormal = "green bold" | |
newHighlight = "green bold 22" | |
[color "branch"] | |
current = yellow reverse | |
local = yellow | |
remote = green | |
[color "status"] | |
added = yellow | |
changed = green | |
untracked = cyan | |
[filter "lfs"] | |
required = true | |
clean = git-lfs clean -- %f | |
smudge = git-lfs smudge -- %f | |
process = git-lfs filter-process | |
[credential] | |
helper = store | |
[init] | |
defaultBranch = main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment