python中Git分支操作

489次阅读
没有评论

python中Git分支操作

1、关联远程分支,当前所在的分支还没有关联到远程分支的情况。

git branch --set-upstream-to origin/develop

分支合并。可以先切回到master分支然后使用git merge来做分支合并。

2、在dev分支上完成开发任务之后,将dev分支上的成果合并到master。

git switch <target-branch>
git merge --no-ff <target-branch>

3、删除分支,可以使用git branch加上-d参数。

git branch -d <branch-name>
error: The branch '<branch-name>' is not fully merged.
If you are sure you want to delete it, run 'git branch -D <branch-name>'.
git branch -D <branch-name>
神龙|纯净稳定代理IP免费测试>>>>>>>>天启|企业级代理IP免费测试>>>>>>>>IPIPGO|全球住宅代理IP免费测试

相关文章:

版权声明:wuyou2022-06-19发表,共计436字。
新手QQ群:570568346,欢迎进群讨论 Python51学习