3 回答

TA貢獻(xiàn)1900條經(jīng)驗(yàn) 獲得超5個(gè)贊
git checkout -b <branch-name> # Create a new branch and check it out
git push <remote-name> <branch-name>
<remote-name>
origin
git push <remote-name> <local-branch-name>:<remote-branch-name>
:<remote-branch-name>
git pull
git push --set-upstream <remote-name> <local-branch-name>
--set-upstream
對(duì)于最新或成功推送的每個(gè)分支,添加上游(跟蹤)引用,由無參數(shù)的git-拉(1)和其他命令使用。

TA貢獻(xiàn)1817條經(jīng)驗(yàn) 獲得超6個(gè)贊
git checkout -b your_branch
git push -u origin your_branch
git fetch git checkout origin/your_branch
git push
... work ... git commit ... work ... git commit git push origin HEAD:refs/heads/your_branch
git checkout --track -b your_branch origin/your_branch ... work ... git commit ... work ... git commit git push
- 3 回答
- 0 關(guān)注
- 1924 瀏覽
添加回答
舉報(bào)