# Git #3 遠端數據庫 git clone & git pull ###### tags: `Git` ## git pull - 從遠端數據庫抓下檔案更新本地數據庫 有時候會遇到有其他人更新了遠端數據庫,但是你的本地數據庫沒有某些部分資料,這時候就可以使用 `git pull` 來更新本地數據庫 ### 提醒 **要是遠端數據庫有個檔案被刪除,如果 pull 下來你的那個檔案也會一起被刪除** ## git clone - 下載數據庫 當你跟別人一起開發,而且你完全沒有任何檔案的時候,就可以使用 `git clone <repo url>` 來下載專案,使用 clone 後下載檔案就會出現在你的資料夾囉 ## git clone 跟 git pull 差異 git clone 主要是下載整個遠端 repo 數據庫,只需執行一次 git pull:更新數據庫資料皆使用此指令 遊戲下載使用 git clone,之後每次登入遊戲時的小更新則是 git pull ## 提醒 git clone 下載的數據庫預設名稱是 origin
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up