Wednesday, 8 October 2014

Create a git branch and push it upstream

If you want to create a local branch and then push it upstream so that changes are tracked between the remote (upstream) branch and the local branch, then do this: (git 1.7.0+)

$ git checkout -b feature_branch_name
... edit files, add and commit ...
$ git push -u origin feature_branch_name
Reference

No comments:

Post a Comment