Skip to content

Instantly share code, notes, and snippets.

@rriveras
Created June 22, 2010 02: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 rriveras/447865 to your computer and use it in GitHub Desktop.
Save rriveras/447865 to your computer and use it in GitHub Desktop.
# Create a local branch, push and then clone the branch. With this,
# you can make a branch local and remote with tracking
git branch experimental
# Now, push this new local branch to remote repo
git push origin experimental
# Check if the new branch was created in the remote repo
git branch -r
# This added your local branch to remote repo, but without tracking. To do that,
# delete your local branch. Note that we gonna delete our local branch
# WITHOUT merging changes, so it's very important to use the capital D in the argument
git branch -D experimental
# Now make a checkout
git checkout --track -b experimental origin/experimental
@holamendi
Copy link

Te estoy observando, Roberto 💩

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment