美文网首页
git设置多个仓库

git设置多个仓库

作者: RadishHuang | 来源:发表于2020-12-01 14:39 被阅读0次

mac环境下到文件目录底下,把隐藏文件打开。
快捷键

  • command+shift+.
  • ⌘⇧.

找到.git文件夹下的config文件

image.png

拷贝仓库的地址

[remote "origin"]
    url = git@gitee.com:radishhuang/christmas.git
    fetch = +refs/heads/*:refs/remotes/origin/*
image.png

新添加的仓库最好是空的目录,仓库什么都没有。提交的时候才不容易出问题。

相关文章

网友评论

      本文标题:git设置多个仓库

      本文链接:https://www.haomeiwen.com/subject/occmmktx.html