Skip to content

Instantly share code, notes, and snippets.

@leandroandrade
Last active April 6, 2021 11:51
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 leandroandrade/1ffc88a2bb79205cb5378516f13bc8af to your computer and use it in GitHub Desktop.
Save leandroandrade/1ffc88a2bb79205cb5378516f13bc8af to your computer and use it in GitHub Desktop.
Git aliases
[user]
name = username
email = email
[github]
user = username_github
[alias]
i = init
a = add
ca = commit -a
cam = commit -am
cm = commit -m
s = status
pom = push origin main
pog = push origin gh-pages
puom = pull origin main
puog = pull origin gh-pages
cob = checkout -b
co = checkout
fp = fetch --prune --all
l = log --oneline --decorate --graph
lall = log --oneline --decorate --graph --all
ls = log --oneline --decorate --graph --stat
lt = log --graph --decorate --pretty=format:'%C(yellow)%h%Creset%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)%an%Creset'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment