Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@mnmeyers
Created June 11, 2016 17:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mnmeyers/7774a1e6d40cf42c0a4abb76887328ab to your computer and use it in GitHub Desktop.
Save mnmeyers/7774a1e6d40cf42c0a4abb76887328ab to your computer and use it in GitHub Desktop.
bash script push to github with current branch name
#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