在远程交换分支

时间:2016-06-30 09:06:35

标签: git github

只是为了确保:

git branch -m test test-old
git push origin test-old
git push origin :test

git branch -m test_tmp test
git push origin test
git push origin :test_tmp

这些操作是否完全安全?我在本地重命名分支,将它们推送到远程并删除旧分支。我不会放松一下吗?

编辑:

git checkout test
git branch -b test-old
git push origin test-old
git push origin :test

git checkout test_tmp
git branch -b test
git push origin test
git push origin :test_tmp

0 个答案:

没有答案