Skip to content

Instantly share code, notes, and snippets.

@mnmeyers
mnmeyers / .bash_profile
Created June 11, 2016 17:46
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"
}