Skip to content

Instantly share code, notes, and snippets.

@nicolasalarconrapela
Last active May 19, 2026 03:30
Show Gist options
  • Select an option

  • Save nicolasalarconrapela/0fb678babc9d9986ef492b9fee953d6a to your computer and use it in GitHub Desktop.

Select an option

Save nicolasalarconrapela/0fb678babc9d9986ef492b9fee953d6a to your computer and use it in GitHub Desktop.
Alias template in git
export ok='\e[1;32m \u2714'
export ko='\e[1;31m \u2715'
export ot='\e[1;30m'
export res='\033[0m'
whibla='\033[47m\033[1;30m'
#.gitconfig
[color]
ui = true
[alias]
glog = log --all --graph --decorate --oneline
cm = commit -m
co = checkout
cb = checkout -b
a = add
pu = push -u origin master
psh = push -u origin
pf = push --force
st = status
log1 = log --oneline
last = log -1 HEAD
count = count-objects -v
cl = clean -i
logcont = log --pretty=format:\"%C(yellow)%h%Cred%d\\\\ %Creset%s%Cblue\\\\ [%cn]\" --decorate
superlog = 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
superlog2 = 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)' --all
cms = commit -S -m
rebc = rebase --continue
rebs = rebase --skip
noammend = commit --ammend--no-edit
noamend = commit --amend --no-edit
ball = branch -vv -a
cmver = commit --amend --no-edit
cmvers = commit -S --amend --no-edit
rmcache = rm -r --cached
rever = cmver && git rebc
ai = add -i
[color "diff"]
meta = blue black bold
[color "branch"]
current = green black bold
[color "branch"]
remote = blue black bold
[color "branch"]
upstream = magenta black bold
[color "status"]
branch = yellow bold
header = normal italic
added = green strike bold
updated = green ul bold
changed = blue black bold
unmerged = red strike
[color "interactive"]
header = cyan black bold
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment