Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 985 Bytes

git.md

File metadata and controls

54 lines (36 loc) · 985 Bytes

安装

安装

apt-get install git

初始化

git config --global user.name "aisuhua"
git config --global user.email [email protected]

其他

清理未加入版本的文件

git clean -d -f ""

使用代理

git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'

git config --global --unset http.proxy
git config --global --unset https.proxy

或在命令行中使用

git -c "http.proxy=socks5://127.0.0.1:1080" clone [email protected]:...

保存账号密码

git config --global credential.helper store

提示 warning: LF will be replaced by CRLF

git config --global core.autocrlf false