繁体   English   中英

关于remote.origin.url

[英]ABOUT remote.origin.url

我无法在我的Codeforces存储库中为命令“ git config --list”理解或编辑两个冲突的remote.origin.url。 有人请帮我弄清楚他们的意思! 另外,请告诉我如何更改它们。

我使用了git config remote.origin.url https://github.com/g1g19/Codeforces.git,但是我无法为“ git config --list”更改以下附件输出的上一个

$ git config --list   
user.name=g1g19         
user.email=gopichandpaturi@gmail.com   
core.editor=emacs   
merge.tool=vimdiff   
remote.origin.url=https://github.com/g1g19/subsurface.git  
core.repositoryformatversion=0   
core.filemode=true         
core.bare=false     
core.logallrefupdates=true  
remote.origin.url=https://github.com/g1g19/Codeforces.git  

git config --list列出所有相关配置文件的内容,即/etc/gitconfig (系统范围), ~/.gitconfig (用户级别)和.git/config (特定于~/.gitconfig )。 如果它们包含冲突的条目,则以最小的范围为准。 请浏览所有3个文件。 我希望这有助于了解重复条目的来源。

至于remote.origin.url

  • remote是您的存储库知道的任何其他存储库。
  • remote.origin是您从中克隆您的存储库。
  • remote.origin.url是其URL。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM