git——如何让gitconfig的代替与货物一起工作?
发布时间:2022-04-14 00:46:04 528
相关标签:
我的~/中有以下内容。gitconfig:
[url "git@github.com:"]
pushInsteadOf = https://github.com/
insteadOf = https://github.com/
不幸的是,今天我发现这妨碍了我cargo build
为我下载依赖项:
Updating crates.io index
error: failed to get `libc` as a dependency of package `hilbert-c2rust v0.1.4 (/home/d33tah/workspace/profound/hilbert-c2rust)`
Caused by:
failed to load source for dependency `libc`
Caused by:
Unable to update registry `https://github.com/rust-lang/crates.io-index`
Caused by:
failed to fetch `https://github.com/rust-lang/crates.io-index`
Caused by:
failed to authenticate when downloading repository
attempted ssh-agent authentication, but none of the usernames `git` succeeded
Caused by:
no authentication available
这个问题有解决办法吗?暂时注释掉这些行有帮助,但我想保留它们,因为它们为我解决了与Github相关的问题。
特别声明:以上内容(图片及文字)均为互联网收集或者用户上传发布,本站仅提供信息存储服务!如有侵权或有涉及法律问题请联系我们。
举报