Git nâng cao
George Boorman
Curriculum Manager, DataCamp


origingit fetch origin
Fetch tất cả các nhánh remote
Có thể tạo nhánh local mới nếu chúng chỉ tồn tại trên remote
Không merge nội dung của remote vào repo local
main của remote origingit fetch origin main
From https://github.com/datacamp/project
* branch main -> FETCH_HEAD
main) của remote origin vào nhánh hiện tại của repo localgit merge origin
Updating 9dcf4e5..887da2d
Fast-forward
tests/tests.py | 13 +++++++++++++
README.md | 10 ++++++++++
2 files changed, 23 insertions (+)
Git giúp đơn giản hóa việc này!
Fetch và merge nhánh mặc định (main) của remote vào nhánh hiện tại của repo local
git pull origin
dev của remote 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 nâng cao