git 重命名本地分支,並提交到遠程
1.重命名 git branch -m oldBranchName newBranchName
2.刪除遠程分支:git push origin :oldBranchName
- 設置遠程git倉庫地址: git branch --set-upstream-to=origin/feat_addBizDateParam
3.將重命名過的分支提交:git push origin newBranchName
設置SSH的git鏈接
-
git remote rm origin
-
git remote set-url origin ssh://git@gitlab.prod.xxxxxx.cn:10022/xxxxxx-insight-web/xxxxxx.git
fatal: No such remote 'origin' -
git remote add origin ssh://git@gitlab.prod.xxxxxx.cn:10022/xxxxxx-insight-web/xxxxxx.git