0
我叉的存儲庫,設置遠程配置:GIT:從叉庫創建分支
git remote -v
origin https://github.com/myAccount/someRepo.git (fetch)
origin https://github.com/myAccount/someRepo.git (push)
upstream https://github.com/someAccount/someRepo.git (fetch)
upstream https://github.com/someAccount/someRepo.git (push)
但我想創建分支:
https://github.com/myAccount/someRepo.git
如果我在本地,然後創建一個分支推分支,那個分支只會去origin
?
例如:
git checkout -b debug
git push -u origin debug
@ das-g我想知道的是創建一個分支,它只會在原點上創建? – user2924482
我已經改寫你的問題(有希望)更清楚。它仍然問你想問什麼? –
是的。你必須指定發送上游,如果這是你想'git push --set-upstream origin debug'。 – Darlesson