Skip to content

Instantly share code, notes, and snippets.

View danielestevez's full-sized avatar
🍁
playing with something, probably

Daniel Estévez danielestevez

🍁
playing with something, probably
View GitHub Profile
@danielestevez
danielestevez / gist:1391076
Created November 24, 2011 10:46
GIT Configurations: Alias to Push/Pull automatically on working branch, nice git log format #git
#include this in your .gitconfigure to perform a pull/push origin on the branch you are currently working
# avoids mistakes performing 'pull origin master' when you are in stable and so on
#
[alias]
# Pushes/pulls to/from remote branch with corresponding name
pl = !git pull origin $(git symbolic-ref HEAD | sed -e 's,.*/\\(.*\\),\\1,')
ps = !git push origin $(git symbolic-ref HEAD | sed -e 's,.*/\\(.*\\),\\1,')