[英]ABOUT remote.origin.url
I am unable to understand or edit the two conflicting remote.origin.url's in my Codeforces repository for the command "git config --list" . 我无法在我的Codeforces存储库中为命令“ git config --list”理解或编辑两个冲突的remote.origin.url。 Someone please help me out what they mean!!
有人请帮我弄清楚他们的意思! And also please tell me how to change them.
另外,请告诉我如何更改它们。
I used git config remote.origin.url https://github.com/g1g19/Codeforces.git But I am not able to change the upper one of the below attached output for "git config --list" 我使用了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
lists the contents of all relevant config files, that is /etc/gitconfig
(system-wide), ~/.gitconfig
(user level) and .git/config
(repo specific). git config --list
列出所有相关配置文件的内容,即/etc/gitconfig
(系统范围), ~/.gitconfig
(用户级别)和.git/config
(特定于~/.gitconfig
)。 If they contain conflicting entries, the smallest scope wins. 如果它们包含冲突的条目,则以最小的范围为准。 Please look through all 3 files.
请浏览所有3个文件。 I hope that helps to understand where the duplicate entry is coming from.
我希望这有助于了解重复条目的来源。
As to remote.origin.url
: 至于
remote.origin.url
:
remote
is any other repo your repo knows about. remote
是您的存储库知道的任何其他存储库。 remote.origin
is the repo you cloned yours from. remote.origin
是您从中克隆您的存储库。 remote.origin.url
is its URL. remote.origin.url
是其URL。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.