Skip to content

Instantly share code, notes, and snippets.

@njames
Created January 14, 2015 04:02
Show Gist options
  • Select an option

  • Save njames/6ffd80fa235117b868a7 to your computer and use it in GitHub Desktop.

Select an option

Save njames/6ffd80fa235117b868a7 to your computer and use it in GitHub Desktop.
some git aliases
.gitconfig aliases - works across all gits (gitbash / github posh / linux terminal)
[alias]
s = status
a = add
co = checkout
c = commit -a -m
b = branch
mt = mergetool
mg = merge
p = push
l = pull
u = push
d = pull
# Git aliases for bash or posh
alias g="git"
alias gs="git status"
alias gh="git --help"
alias gp="git push"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment