Git重命名仓库、修改远程仓库地址、修改仓库配置
2017-05-05 23:01
489 查看
给本地和远程仓库重命名
### 1.重命名本地分支 git branch -m new-name #如果当前在要重命名的分支 git branch -m old-name new-name #如果当前不在要重命名的分支 ### 2.删除远程旧名称分支并且push新名称分支 git push origin :old-name new-name ### 3.关联新名称的本地分支和远程分支 git push origin -u new-name
修改远程仓库地址
git remote set-url origin [url]
分别查看仓库 local global system 的配置信息
git config --local --list git config --global --list git config --system --list
仓库配置增加用户
git config --local --add user.name yourname
相关文章推荐
- git修改远程仓库地址
- [转]git修改远程仓库地址
- git关联和修改远程仓库地址
- git修改远程仓库的地址
- Git远程仓库地址变更本地如何修改
- git的使用方法:回退本次commit,提交代码到另一个远程仓库,修改远程仓库地址
- Git远程仓库地址变更本地如何修改
- git修改远程仓库地址及远程仓库管理
- git系列教程之 修改远程仓库地址 modify remote url
- git修改远程仓库地址
- 在git添加远程库的过程中,写错远程仓库地址,如何把远程仓库地址修改回来
- Git修改远程仓库地址
- git修改远程仓库地址
- git修改远程仓库地址
- Git远程仓库地址变更本地如何修改
- 在git添加远程库的过程中,写错远程仓库地址,如何把远程仓库地址修改回来
- git修改远程仓库地址
- git 修改远程仓库地址
- git修改远程仓库地址
- Git修改远程仓库地址