[英]Get the latest code from a git remote branch using powershell command
windows powershell 中是否有一個簡單的命令可以從 git 遠程存儲庫獲取最新代碼? 我已經安裝了git posh
筆記:
你可以使用 git clone
git clone <http or ssh address for the repository>
如果您已經克隆了 repo,則需要簽出分支然后拉取它。
git checkout <branch name>
git pull
如果您沒有可從遠程結帳的分支機構:
git fetch origin
並查看哪些分支可用於結帳:
git checkout -v -a
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.