Git nâng cao
George Boorman
Curriculum Manager, DataCamp


git push remote local_branch
Đẩy VÀO remote TỪ local_branch
Đẩy thay đổi vào origin từ nhánh main của repo cục bộ
git push origin main



main lên remote trước khi kéogit push origin main




git pull origin main

git pull --no-edit origin main
Đang làm việc trên nhánh hotfix cục bộ
hotfix chưa tồn tại trên remote
hotfix chỉ tồn tại cục bộgit push origin hotfix
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 8 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 349 bytes | 349.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
remote:
remote: Create a pull request for 'hotfix' on GitHub by visiting:
remote: https://github.com/datacamp/project/pull/new/hotfix
remote:
To https://github.com/datacamp/project
* [new branch] hotfix -> hotfix
branch 'hotfix' set up to track 'origin/hotfix'.
Git nâng cao