Git [solved] 更改本地 brench 名称后如何将修改应用到远端 repo

oran · August 11, 2013 · Last by oran replied at August 13, 2013 · 2453 hits

更改本地 brench 名称后如何将修改应用到远端 repo

git push origin brench_name

#1 楼 @Levan 只是改了 branch 名,没有任何 commit,没有效果啊

$ git push origin :old_branch

BTW, it actually delete the remote old branch, but you get it, when it done, you can push your new branch back to the origin.

You need to Sign in before reply, if you don't have an account, please Sign up first.