Git nâng cao
George Boorman
Curriculum Manager, DataCamp


Mọi thứ được sao lưu
Cộng tác dù ở bất kỳ đâu

Bản sao repo trên máy cục bộ = remote cục bộ
Tạo bản sao = clone
git clone path-to-project-repo
git clone /home/george/repo
git clone /home/george/repo new_repo
Repo remote thường được lưu trên dịch vụ lưu trữ trực tuyến
Nếu có tài khoản:
git clone URL
git clone https://github.com/datacamp/project
Khi clone một repo
Git lưu một thẻ remote trong cấu hình repo mới
Liệt kê tất cả remote của repo
git remote
datacamp
git remote -v
datacamp https://github.com/datacamp/project (fetch)
datacamp https://github.com/datacamp/project (pull)
origingit remote add name URL
george git remote add george https://github.com/george_datacamp/repo
Git nâng cao