Created
June 11, 2016 17:46
-
-
Save mnmeyers/7774a1e6d40cf42c0a4abb76887328ab to your computer and use it in GitHub Desktop.
bash script push to github with current branch name
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
#push to branch with branch name that you're currently on | |
#and then open new tab to your repo | |
function pushit { | |
branch_name=`git name-rev --name-only HEAD` | |
git push origin $branch_name | |
git status | |
open "https://github.com/yourRepo" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment