我无法理解或编辑我的 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
(system-wide), ~/.gitconfig
(用户级别)和 .git/config
(特定于 repo)。如果它们包含冲突的条目,则最小范围获胜。请查看所有 3 个文件。我希望这有助于理解重复条目的来源。
关于remote.origin.url
:
remote
是您的仓库知道的任何其他仓库。remote.origin
是您从中克隆的存储库。remote.origin.url
是它的 URL。
关于linux - 关于 remote.origin.url,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22077947/