How do I push a new local branch to a remote Git repository and track it too?
5.4k
How do I:
- Create a local branch from another branch (via git branch or git checkout -b).
- Push the local branch to the remote repository (i.e. publish), but make it trackable so that git pull and git push will work.