Created
July 6, 2015 16:26
-
-
Save frontend-3/360d9f15657139adba00 to your computer and use it in GitHub Desktop.
Bash para git pull y push en branch actual
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function current_branch() { | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || return | |
echo ${ref#refs/heads/} | |
} | |
function gpull() { | |
git pull origin $(current_branch) | |
} | |
function gpush() { | |
git push origin $(current_branch) | |
} |
👍
+1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
+1