Skip to content

Instantly share code, notes, and snippets.

View Convly's full-sized avatar
🧙
It's not a bug. It's magic.

Jean-Sébastien Herbaux Convly

🧙
It's not a bug. It's magic.
View GitHub Profile
@robmiller
robmiller / .gitconfig
Created July 17, 2013 07:52
Some useful Git aliases that I use every day
#
# Working with branches
#
# Get the current branch name (not so useful in itself, but used in
# other aliases)
branch-name = "!git rev-parse --abbrev-ref HEAD"
# Push the current branch to the remote "origin", and set it to track
# the upstream branch
publish = "!git push -u origin $(git branch-name)"