记录一些平常会用到的命令等

github 加速

fastGit文档

1
2
3
4
5
// clone仓库
// 原命令
git clone https://github.com/author/repo
// 加速命令
git clone https://hub.fastgit.org/author/repo
1
2
3
4
5
6
7
8
# Release
# 假设下载链接为https://github.com/A/A/releases/download/1.0/1.0.tar.gz
wget https://download.fastgit.org/A/A/releases/download/1.0/1.0.tar.gz

# Codeload
# 假设下载链接为 https://hub.fastgit.org/A/A/archive/master.zip
# 或者 https://codeload.github.com/A/A/zip/master
wget https://download.fastgit.org/A/A/archive/master.zip

git取消http证书检测

当自己搭建gitlab时,https的证书可能不会被认为是安全证书,无法clone等操作,所以需要关闭http检测

1
git config --global http.sslVerify "false"

设置npm仓库为淘宝的镜像

1
npm config set registry https://registry.npm.taobao.org

用Beyond Compare 4处理git冲突的时候,不创建.orig的文件

1
git config --global mergetool.keepBackup false

gitkraken下载地址(改版本号就行)

1
2
3
4
5
Linux-deb : https://release.axocdn.com/linux/GitKraken-v7.5.1.deb
Linux-rpm : https://release.axocdn.com/linux/GitKraken-v7.5.1.rpm
Linux-tar.gz : https://release.axocdn.com/linux/GitKraken-v7.5.1.tar.gz
Win64 https://release.axocdn.com/win64/GitKrakenSetup-7.5.1.exe
Mac : https://release.axocdn.com/darwin/GitKraken-v7.5.1.zip

gitkraken 禁用更新host

1
2
3
0.0.0.0 release.gitkraken.com
0.0.0.0 api.gitkraken.com
0.0.0.0 gloapi.gitkraken.com

gitkraken windows卸载残留

1
2
3
C:\Users\xxxxx\AppData\Roaming.gitkraken
C:\Users\xxxxx\AppData\Roaming\GitKraken
C:\Users\xxxxx\AppData\Local\gitkraken\