- Abra TerminalTerminalGit Bash.
- Liste o repositório remote configurado no momento para sua bifurcação.
$ git remote -v > origin https://github.com/YOUR_USERNAME/YOUR_FORK.git (fetch) > origin https://github.com/YOUR_USERNAME/YOUR_FORK.git (push) - Especifique um novo repositório upstream remote que será sincronizado com a bifurcação.
$ git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git - Verifique o novo repositório upstream especificado para a bifurcação.
$ git remote -v > origin https://github.com/YOUR_USERNAME/YOUR_FORK.git (fetch) > origin https://github.com/YOUR_USERNAME/YOUR_FORK.git (push) > upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git (fetch) > upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git (push)
Versão do artigo: Free, Pro, and Team
Versão do artigo: Free, Pro, and Team
Configurar remote para bifurcação
Você deve configurar um remote que aponta para o repositório upstream no Git para sincronizar alterações que faz em uma bifurcação com o repositório original. Isso também permite sincronizar alterações feitas no repositório original com a bifurcação.
Help us make these docs great!
All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.
Make a contribution