git基础命令

笔记  ·  2025-06-21

设置用户名和邮箱

git config --global user.name "替换为用户名"
git config --global user.email "替换为邮箱"

设置代理

git config --global http.proxy 代理服务器
git config --global https.proxy 代理服务器

取消代理

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

查看配置

# 查看所有配置
git config --list
# 查看特定配置来源
git config --show-origin --list

拉取

git clone 需要拉取的链接 
 Githubgit
评论
Linh - 的笔记. All Rights Reserved. Theme Jasmine by Kent Liao.