# create new branch and checkout that branchgit checkout -b myNewBranch# now push branch to remotegit push origin myNewBranch# set up the new branch to track remote branch from origingit branch --set-upstream-to=origin/myNewBranch myNewBranch
1: Open SourceTree, click on Repository -> Checkout2: Click on Create New Branch3: Select the branch where you want to get code for new branch4: Give your branch name5: Push the branch (by click on Push-button)
1) git checkout -b localBranchNameThatDoesNotExistInRemote
2) Do your changes, and do a git commit
3) git push origin localBranchNameThatDoesNotExistInRemote --force