Git 中級
George Boorman
Curriculum Manager, DataCamp


全部都有備份
不受地點限制的協作

我們電腦上的副本=本機遠端
製作副本=cloning(複製)
git clone path-to-project-repo
git clone /home/george/repo
git clone /home/george/repo new_repo
遠端版本庫通常放在線上託管服務
如果你有帳號:
git clone URL
git clone https://github.com/datacamp/project
當你複製版本庫時
Git 會在新版本庫設定中儲存遠端的標籤(tag)
列出與此版本庫相關的所有遠端
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 中級