简体   繁体   English

关于remote.origin.url

[英]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.

相关问题 使用'git remote add origin'创建一个全局远程,而不是当前目录/ repo的一个本地 - Using 'git remote add origin' creates a global remote instead of one local to current directory/repo git push origin master要求远程服务器密码 - git push origin master asking for remote server password 从远程来源的GIT拉取忽略SSH密钥-要求输入密码 - GIT Pull from Remote Origin Ignoring SSH Keys - Asks For Password CMake:外部项目远程URL不起作用 - CMake : External project remote URL not working 清漆 ESI 缓存 - 远程 url 返回 404 - Varnish ESI caching - remote url returns 404 Git - SSH - 主机:我如何将不同的IP委派给远程源,具体取决于每次都有效? - Git - SSH - Hosts: How can I delegate different IPs to remote origin, depending on what works each time? 如何在curl中使用本地文件代替Linux中的远程文件URL - How to use the local file in curl instead of remote file URL in Linux 如何从远程Linux服务器发出对url的请求? - How to make a request to a url from a remote linux server? 尝试解析文件中的所有URL,在这种情况下为远程URL - Trying to parse all URLs from a file or in this case a remote URL 如何在本地更改子模块远程URL,必须重新提交这些更改 - How to change a submodule remote url locally having to commit back these changes
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM