Skip to content

Instantly share code, notes, and snippets.

@jeanbispo
Forked from diego3g/.gitconfig
Last active May 11, 2022 16:08
Show Gist options
  • Save jeanbispo/52db36d5e302343336616961f416ebd4 to your computer and use it in GitHub Desktop.
Save jeanbispo/52db36d5e302343336616961f416ebd4 to your computer and use it in GitHub Desktop.
[user]
name = Jean Bispo
email = 1jeanbispo@gmail.com
[core]
autocrlf = input
[color "status"]
added = green
changed = yellow
untracked = red
[color "branch"]
current = white
remote = red
[color "branch"]
current = white
remote = red
[color "diff"]
meta = yellow
old = red
new = green
[alias]
me = config user.name
pom = push origin master -u
ps = push
ci = commit
cim = "!f() { git commit -m \"$*\"; }; f"
co = checkout
cm = checkout master
cb = checkout -b
st = status -sb
sf = show --name-only
lg = log --pretty=format:'%Cred%h%Creset %C(bold)%cr%Creset %Cgreen<%an>%Creset %s' --max-count=30
incoming = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' ..@{u})
outgoing = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' @{u}..)
unstage = reset HEAD --
undo = checkout --
rollback = reset --soft HEAD~1
# Create a package
package = !(GZIP=-9 tar --exclude=".git/" -zcvf ../$(basename "$PWD")_$(date +"%Y-%m-%d_%H-%M-%S").tar.gz *)
# List committers
committers = !(git log | grep Author | sort | uniq -c | sort -n -r)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment