Git intermediar
George Boorman
Curriculum Manager, DataCamp


origingit fetch origin
Preia toate ramurile remote
Poate crea ramuri locale noi dacă acestea existau doar în remote
Nu îmbină conținutul remote-ului în depozitul local
main a remote-ului origingit fetch origin main
From https://github.com/datacamp/project
* branch main -> FETCH_HEAD
main) a remote-ului origin în ramura locală curentăgit merge origin
Updating 9dcf4e5..887da2d
Fast-forward
tests/tests.py | 13 +++++++++++++
README.md | 10 ++++++++++
2 files changed, 23 insertions (+)
Git simplifică acest proces!
Preia și îmbină din ramura implicită a remote-ului (main) în ramura curentă locală
git pull origin
dev a remote-ului 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 intermediar