Skip to content

Instantly share code, notes, and snippets.

@andrejb-dev
Created November 25, 2019 12:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrejb-dev/22ab96cffed2599d7beac37975195f71 to your computer and use it in GitHub Desktop.
Save andrejb-dev/22ab96cffed2599d7beac37975195f71 to your computer and use it in GitHub Desktop.
GIT creating and pushing branch upstream
# create new branch and switch to it
git checkout -b <branch_name>
# push the branch to the remote repository origin and tracks it
git push -u origin HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment