Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Push the current branch to remote origin and make it track the newly created remote branch.
#!/usr/bin/env bash
branch=`git branch | grep '*' | awk '{print $2}'`
git push -u origin $branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment