-
查看远程连接
git remote -v
-
取消与远程库的连接
git remote remove origin
-
初始化仓库(生成.git文件夹)
git init
-
连接新仓库
git remote add origin (url)
-
检查状态
git status
-
检查分支
git branch
-
创建新分支并切换
git checkout -b (xxx)
-
提交到本地
git add
-
提交加注释
git commit -m "xxx"
-
推送至远程分支
git push -u xxx
Git断开与原来远程仓库连接,连接新仓库并重新上传
最新推荐文章于 2024-07-26 13:31:32 发布