git根据tag创建branch
- 2018-03-13 11:13:00
- wyd621
- 原创 0
1、到git目录,checkout Tag.
z@wyd:~/pms$ git checkout -f zentaopms_9.8_20180118 Note: checking out 'zentaopms_9.8_20180118'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b <new-branch-name> HEAD 目前位于 341a9ce... * Remove English part from it.
2、创建branch
git checkout -b v1_1
注意:branch名称不能与tag名称一样。
如果名称有错,可以删除,先切换会master分支(git checkou master)。在删除该分支(git branch -d v1_1)。
3、远程同步分支
git push origin v1_1
发表评论