设置 HTTPS 代理

1
2
3
4
5
6
7
8
git config --global http.proxy "http://127.0.0.1:7890"
git config --global https.proxy "http://127.0.0.1:7890"
# Query
git config --global --get http.proxy
git config --global --get https.proxy
# Cancel
git config --global --unset http.proxy
git config --global --unset https.proxy

设置提交用户信息

1
2
3
4
5
6
7
8
9
# Global
git config --global user.name "User"
git config --global user.email "user@email.com"
# Repo
git config user.name "User"
git config user.email "user@email.com"
# Query
git config user.name
git config user.email

Clone 子模块项目

1
2
3
4
5
# Exist Repo
git submodule init
git submodule update
# Remote Repo
git clone --recursive ${REPO_URL}

查看 lfs 版本

1
git lfs version