Skip to content

远程仓库 ​


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