Git intermediário
George Boorman
Curriculum Manager, DataCamp


origingit fetch origin
Busca todos os branches remotos
Pode criar branches locais novos se só existiam no remote
Não faz merge do conteúdo do remoto no repositório local
main do remoto origingit fetch origin main
From https://github.com/datacamp/project
* branch main -> FETCH_HEAD
main) do remoto origin no branch local atualgit merge origin
Updating 9dcf4e5..887da2d
Fast-forward
tests/tests.py | 13 +++++++++++++
README.md | 10 ++++++++++
2 files changed, 23 insertions (+)
O Git facilita isso pra gente!
Busca e faz merge do padrão do remoto (main) no branch local atual
git pull origin
dev do remoto origingit pull origin dev
From https://github.com/datacamp/project
* branch dev -> FETCH_HEAD
Updating 9dcf4e5..887da2d
Fast-forward
tests/tests.py | 13 +++++++++++++
README.md | 10 ++++++++++
2 files changed, 23 insertions (+)
git pull origin
Updating 9dcf4e5..887da2d
error: Your local changes to the following files would be overwritten by merge:
README.md
Please commit your changes or stash them before you merge.
Aborting
remoteGit intermediário