跳转至

远程仓库


命令 描述
git remote 查看远程仓库
git remote -v
git remote show origin
git remote add 添加远程仓库
git fetch [remote-name] 远程仓库抓取,不会自动合并到本地
git pull 远程仓库拉取,自动合并到本地。
git push origin master 推送到远程仓库
git remote rename old-name new-name 远程仓库重命名
git remote rm name 移除远程仓库