1、查看远程仓库地址
git remote get-url origin
2、切换新的仓库地址
git remote set-url origin 新git地址
3、切换后,add
git add .
4、commit提交
git commit -m 'init'
5、push
git push
6、如果有其他分支,需要切换其他分支,切换后,重复以上命令
git checkout 分支名称
7、查看当前分支
git branch
1、查看远程仓库地址
git remote get-url origin
2、切换新的仓库地址
git remote set-url origin 新git地址
3、切换后,add
git add .
4、commit提交
git commit -m 'init'
5、push
git push
6、如果有其他分支,需要切换其他分支,切换后,重复以上命令
git checkout 分支名称
7、查看当前分支
git branch