创建远程分支 testDev
step 1: git checkout -b testDev
step 2: git add yourfile
step 3:git commit -m "your comment"
step 4:git push --set-upstream origin testDev // 发布到远程
合并 testDev 到 testDev2,并删除 testDev 分支
首先,进入testDev2 分支: git checkout testDev2
然后, 合并分支 : git merge testDev
删除本地 testDev 分支:git branch -d testDev
删除远程 testDev 分支: git push origin --delete testDev
本文详细介绍如何使用Git创建、合并及删除分支。通过具体步骤演示如何将本地更改推送到远程仓库并安全地合并分支,适用于软件开发团队进行版本控制。
2423

被折叠的 条评论
为什么被折叠?



