haani-niyaz
7/15/2015 - 5:55 AM

Create an alias to a git branch

Create an alias to a git branch

# Alias for remote branch (f1 tracks feature_1)
 git checkout --track -b f1 origin/feature_1

# To enable push/pull to remote tracking branch (enables local(alias) branch to push to remote branch)
git config push.default upstream