linux - 关于 remote.origin.url

标签 linux git github

我无法理解或编辑我的 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/

相关文章:

git - 只克隆 git 中的稳定分支和另一个分支?

Javascript:如果我不知道对象的键,如何访问嵌套对象中的值?

github - 使用Aptana Studio导入git项目但权限被拒绝(publickey)

linux - RHEL Crontab 无法执行命令

linux - 在 Vscode 中使用 sudo 运行 Python 脚本

git rebase 反复要求我运行 `git rebase --continue`

git - 如何控制部署到不同版本号的git

git - “git Push origin master”卡住

linux - 从其他选项卡彻底杀死所有 vim 进程

linux - 验证用户在 shell 脚本中输入的日期时间格式