克隆分支并从第一个分支创建一个新分支

Clone Branch and create a new from the first one

我克隆了一个分支"feature/first" 现在我想从 "feature/first" 创建一个新的 "feature/second" 并处理不同的东西

我的步骤: 1. git clone [...] -b feature/first 2. ?

我该怎么做?

您可以执行以下操作:

  • git checkout feature/first 确保在 "feature/first" 分支上;

  • git checkout -b "feature/second" 创建一个名为 "feature/second" 的新分支并打开它。

注意:注意命令...您克隆一个存储库,然后您可以使用[=12切换或创建分支=]命令。