![](/img/trans.png)
[英]How to push a directory from one repository to the master branch of another repository?
[英]Git master branch in one repository and another branch on another private repository
是否可以使用像github這樣的公共存儲庫並在私有存儲庫中存在分支?
我希望我的master分支是公共的,但我也想從可以在其中工作的私有分支(也許在另一個主機上)工作。 有時,我想從master分支中獲取更新。
我最好只使用'git clone'嗎?
當然,您可以決定將哪個分支推送到遠程存儲庫。 假設您的GitHub庫稱為origin
,你會推僅master
用
$ git push origin master
是的,您可以使用git push
$ git push origin local_branch_name:遠程_branch_name
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.