作为 Dev 在远程和本地创建一个新分支
Create a new branch on remote and local as Dev
第 1 步:我将 master
克隆到本地
第 2 步:然后我将另一个分支合并到 master 上,如下所示:
git fetch origin other-branch
git merge origin/other-branch
第 3 步:现在我需要在 step 2
之后在远程和本地创建一个新分支作为 Dev
。我该怎么做?
只需检出一个名为 Dev
的新分支并将该分支推送到远程。
$ git checkout -b Dev # Create lcoal 'Dev' branch and checkout to that branch
$ git push -u origin Dev
第 1 步:我将 master
克隆到本地
第 2 步:然后我将另一个分支合并到 master 上,如下所示:
git fetch origin other-branch
git merge origin/other-branch
第 3 步:现在我需要在 step 2
之后在远程和本地创建一个新分支作为 Dev
。我该怎么做?
只需检出一个名为 Dev
的新分支并将该分支推送到远程。
$ git checkout -b Dev # Create lcoal 'Dev' branch and checkout to that branch
$ git push -u origin Dev