Git intermedio
George Boorman
Curriculum Manager, DataCamp


origingit fetch origin
Trae todas las ramas remotas
Puede crear ramas locales nuevas si solo existían en el remote
No fusiona el contenido del remoto en el repo local
main del remoto origingit fetch origin main
From https://github.com/datacamp/project
* branch main -> FETCH_HEAD
main) del remoto origin en la rama local actualgit merge origin
Updating 9dcf4e5..887da2d
Fast-forward
tests/tests.py | 13 +++++++++++++
README.md | 10 ++++++++++
2 files changed, 23 insertions (+)
Git lo simplifica por nosotros
Trae y fusiona la rama predeterminada (main) del remoto en la rama local actual
git pull origin
dev del 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 intermedio