![](/img/trans.png)
[英]How can I show the revision date of a remote git repository's master branch, without cloning the whole repository?
[英]How can I track the master branch of a new remote repository?
我的本地存儲庫中有兩個遠程服務器:
me@desktop:~/linux$ git remote
linux-next
origin
當我執行git checkout linux-next/master
我得到了followint狀態:
me@desktop:~/linux$ git status
HEAD detached at linux-next/master
nothing to commit, working directory clean
如何檢出第二個遠程linux-next
的主服務器並跟蹤該遠程服務器?
你可以試試
git branch -u Linux-next/master
如果您的git版本超過1.8。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.