mclone 体验飞一般的clone速度 ### 对比 #### git clone ![git_clone.gif](https://storage.liesauer.net/2021/03/2885816450.gif) #### git mclone ![git_mclone.gif](https://storage.liesauer.net/2021/03/3521721393.gif) ### 限制 1. 仓库大小(仅Proxy):`<500M` 2. LFS支持:`未知` ### 项目地址 [nulastudio/mclone](https://github.com/nulastudio/mclone) ### 使用 `git clone`换成`git mclone`,完事 ### 安装 #### Windows cmd ```shell powershell Invoke-Expression (New-Object Net.WebClient).DownloadString(\"https://gitee.com/liesauer/mclone/raw/v1.5.1/script/install.ps1\") ``` powershell ```shell Invoke-Expression (New-Object Net.WebClient).DownloadString("https://gitee.com/liesauer/mclone/raw/v1.5.1/script/install.ps1") ``` #### Linux/MacOS curl ```shell sudo bash -c "$(curl -fsSL https://gitee.com/liesauer/mclone/raw/v1.5.1/script/install.sh)" ``` wget ```shell sudo bash -c "$(wget https://gitee.com/liesauer/mclone/raw/v1.5.1/script/install.sh -O -)" ``` ### 卸载 #### Windows cmd ```shell powershell Invoke-Expression (New-Object Net.WebClient).DownloadString(\"https://gitee.com/liesauer/mclone/raw/v1.5.1/script/uninstall.ps1\") ``` powershell ```shell Invoke-Expression (New-Object Net.WebClient).DownloadString("https://gitee.com/liesauer/mclone/raw/v1.5.1/script/uninstall.ps1") ``` #### Linux/MacOS curl ```shell sudo bash -c "$(curl -fsSL https://gitee.com/liesauer/mclone/raw/v1.5.1/script/uninstall.sh)" ``` wget ```shell sudo bash -c "$(wget https://gitee.com/liesauer/mclone/raw/v1.5.1/script/uninstall.sh -O -)" ```
### 安装Gpg4win 前往[官网](https://gpg4win.org/download.html)下载并安装`Gpg4win`。 ![TIM截图20200821092124.png](https://storage.liesauer.net/2020/08/548415563.png) 注意安装时一定要勾选`Kleopatra`组件,我们需要使用这个工具来创建、管理证书。 ![TIM截图20200821092315.png](https://storage.liesauer.net/2020/08/2490477745.png) - 阅读剩余部分 -
- 阅读剩余部分 -
### 问题 开启2FA后提示验证失败。 ``` Username for 'https://github.com': Password for 'https://username@github.com': remote: Invalid username or password. fatal: Authentication failed for 'https://github.com/your/repository.git/' ``` 需要注意的是,只有使用`HTTPS`才会这样,使用`SSH`是使用`SSH KEY`进行验证的。 ### 原因 github开启2FA后,不再使用原来的密码进行验证,而是使用`ACCESS_TOEKN`,因此我们需要[新增](https://github.com/settings/tokens/new "新增")一条`TOKEN`,如果你只是进行常规git操作只需要勾选`repo`下的权限即可,添加成功后在git下输入密码时输入新添的`TOKEN`即可。 ### 文章引用 [Creating a personal access token for the command line](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line "Creating a personal access token for the command line")
域名出售
服务器推荐