git - 基于另一个分支创建 git 分支

标签 git git-branch

我想在其他分支的基础上创建本地分支。例如我输入:

git checkout -b feature1 release1.1.3

之后我得到:

致命:git checkout:更新路径与切换分支不兼容。

这是什么问题?

最佳答案

git branch <new-branch-name> <existing-branch-name>

关于git - 基于另一个分支创建 git 分支,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15026864/

相关文章:

github - github上fork和branch的区别

git - 为 merge 请求准备分支

git - 从 master 分支更新 develop 分支,而不会丢失 develop 中的任何更改

git - 从 Github 存储库更新 GitLab 存储库

git - 通过本地存在的非平凡 merge 提交重新定位到上游更改

node.js - Github Action err : bash: line 3: npm: command not found

git - 在 master 中找到最后 merge 的 git 分支

git - 使用 git 删除非存储库文件?

git - 我应该如何在 300 多个网站上使用 git?

git - 推送失败 - 使用 GitKraken 在远程服务器上清空存储库