Skip to content

Instantly share code, notes, and snippets.

@lisasy
Last active August 29, 2015 14:09
Show Gist options
  • Save lisasy/ec083765c6233c2234be to your computer and use it in GitHub Desktop.
Save lisasy/ec083765c6233c2234be to your computer and use it in GitHub Desktop.
Git helpers
  • What is remote?
  • What is local?

I want to take a branch that is remote and bring it onto my machine.

git checkout -b branch_name origin/branch_name

Before I want to push my local branch remote, I want to make sure I get the most updated information from Mars.

git fetch origin master
git rebase -i origin/master [branch_name]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment