来自 gitlab 的新分支不会出现在 git bash 中
New branch from gitlab won't appear in git bash
我使用 Gitlab GUI 创建了一个新的 b运行ch。我打开了我的 git bash 和 运行 git b运行ch,但是新创建的 b运行ch 不会出现在那里。我现在如何将我的最新提交推送到新创建的 b运行ch?
强制拉取最新的:
git fetch origin
如果您在 UI 上创建一个名为 recentUI 的分支,您将看到:
* [new branch] <recentUIbranch> -> origin/<recentUIbranch>
跳转到分支:
git checkout -b <recentUIbranch>
您现在可以对该分支进行一些更改。
当您按下时:
git push --set-upstream origin <recentUIbranch>
我使用 Gitlab GUI 创建了一个新的 b运行ch。我打开了我的 git bash 和 运行 git b运行ch,但是新创建的 b运行ch 不会出现在那里。我现在如何将我的最新提交推送到新创建的 b运行ch?
强制拉取最新的:
git fetch origin
如果您在 UI 上创建一个名为 recentUI 的分支,您将看到:
* [new branch] <recentUIbranch> -> origin/<recentUIbranch>
跳转到分支:
git checkout -b <recentUIbranch>
您现在可以对该分支进行一些更改。
当您按下时:
git push --set-upstream origin <recentUIbranch>