![](/img/trans.png)
[英]Using 'git remote add origin' creates a global remote instead of one local to current directory/repo
[英]ABOUT remote.origin.url
我無法在我的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
(系統范圍), ~/.gitconfig
(用戶級別)和.git/config
(特定於~/.gitconfig
)。 如果它們包含沖突的條目,則以最小的范圍為准。 請瀏覽所有3個文件。 我希望這有助於了解重復條目的來源。
至於remote.origin.url
:
remote
是您的存儲庫知道的任何其他存儲庫。 remote.origin
是您從中克隆您的存儲庫。 remote.origin.url
是其URL。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.