【问题标题】:git checkout remote branch and then pushgit checkout 远程分支然后推送
【发布时间】:2021-06-21 03:24:15
【问题描述】:

我正在尝试将更改推送到远程分支。

我运行了以下命令:

git fetch origin

git checkout <remote branch>

进行了更改

 git add .

 git commit .

现在我想推送我的更改。我应该使用哪个命令将更改推送到远程分支。

【问题讨论】:

标签: git bitbucket


【解决方案1】:

欢迎阅读the documentation

git push <remote> <branch>

所以,比如说你的远程分支是origin(我从你的问题中看到)和你的本地分支master,你会这样做:

git push origin master

【讨论】:

    猜你喜欢
    • 2011-09-10
    • 2016-07-08
    • 2012-07-25
    • 2014-02-04
    • 1970-01-01
    • 2015-08-14
    • 2021-08-22
    • 2016-10-25
    • 2018-12-22
    相关资源
    最近更新 更多