Skip to content

Instantly share code, notes, and snippets.

@triblondon
Created June 19, 2015 15:54
Show Gist options
  • Select an option

  • Save triblondon/cfaf1a650f09a28e566d to your computer and use it in GitHub Desktop.

Select an option

Save triblondon/cfaf1a650f09a28e566d to your computer and use it in GitHub Desktop.
git: Pulling from someone else's remote into a local branch
# create a local branch with the same name as theirs (though can be anything
git checkout -b <theirbranchname>
# Pull their changes into the local branch
git pull <remote> <theirbranchname>
@Dwiga
Copy link

Dwiga commented May 1, 2017

hi,
I am using git, but I host it on cloud storage -onedrive like-.
I have aproject that i should finish it using branch feature, I want to finish it on two different computer, just call it a and b computer...
when i create branch "alpha" on a, how to access "alpha" on b?

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