关于remote.origin.url

时间:2014-02-27 19:02:22

标签: linux git github

我无法理解或编辑命令“git config --list”中我在Codeforces存储库中的两个冲突的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  

1 个答案:

答案 0 :(得分:1)

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

关于remote.origin.url

  • remote是您的回购公司知道的任何其他回购。
  • remote.origin是您克隆的回购。
  • remote.origin.url是其网址。
相关问题