anonymous github下载
时间: 2024-04-23 20:20:23 浏览: 29
Anonymous GitHub下载是指在GitHub上匿名下载代码或项目的方式。GitHub是一个开代码托管平台,用户可以在上面创建、共享和协作开项目。通常情况下,用户需要登录自己的GitHub账号才能下载代码或项目,但有时候我们可能需要匿名下载,这时可以采取以下几种方式:
1.*********************
相关问题
Remote: No anonymous write access. Authentication failed for
Remote: No anonymous write access错误发生的原因是身份验证失败。这个错误提示表明您不具备匿名写入权限,需要进行身份验证才能推送更改到远程仓库。
解决这个问题的一种方法是使用个人访问令牌(Personal Access Token)进行身份验证。您可以在个人GitHub页面的Settings → Developer settings → Personal access tokens中生成一个令牌,然后在项目的命令行中使用该令牌作为用户名进行身份验证。示例命令如下:
git remote set-url origin https://令牌串@github.com/个人用户名/项目名.git
这样,您就可以使用生成的个人访问令牌进行身份验证,并成功推送更改到远程仓库。
error Command failed. Exit code: 128 Command: git Arguments: fetch --tags Directory: C:\Users\Administrator\AppData\Local\Yarn\Cache\v6\.tmp\c8a1082f4d0cf2d24e10ae2d0b9c32e3 Output: error: RPC failed; curl 28 Recv failure: Connection was reset fatal: expected flush after ref listing info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command. Error: Couldn't find match for "91431fa" in "refs/heads/main" for "https://github.com/oscario2/wp5-cra-polyfill.git". at MessageError.ExtendableBuiltin (C:\Users\Administrator\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:721:66) at new MessageError (C:\Users\Administrator\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:750:123) at Git.<anonymous> (C:\Users\Administrator\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:51246:15) at Generator.next (<anonymous>) at step (C:\Users\Administrator\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:310:30) at C:\Users\Administrator\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:321:13
这个错误看起来是一个 Git 操作失败了。可能是由于网络连接问题,导致 Git 无法从远程仓库获取最新的代码。你可以尝试运行以下命令来解决这个问题:
```
git config --global http.postBuffer 524288000
```
这会将 Git 的缓冲区大小增加到 500 MB,以避免出现类似上述错误的问题。如果这个命令不起作用,你可以尝试删除 Yarn 缓存并重新运行 Yarn 命令:
```
yarn cache clean
yarn install
```
这将清除 Yarn 的本地缓存并重新安装项目的依赖项。希望这些方法能够帮助你解决问题。
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)