Escolha Git de outro repositório

Digamos que você queira aplicar alguns patches do repositório de outra pessoa:

# Cloning our fork
$ git clone git clone git@github
.com:ifad/rest-client.git

# Adding (as "endel") the repo from we want to cherry-pick
$ git remote
add endel git://github.com/endel/rest-client.git

# Fetch their branches
$ git fetch endel


# List their commits
$ git log endel
/master

# Cherry-pick the commit we need
$ git cherry
-pick 97fedac

# Pushing to our master
$ git push origin master

Respostas relacionadas:

git checkout remote branch