Skip to content
章节导航

Git 配置使用者

客户端配置,Linux 跟 Windows 配置都一样

配置使用者信息

shell
# 全局配置用户名
git config --global user.name shuofeng

# 全局配置用户邮箱
git config --global user.email shuofeng@abc.com

查询使用者信息

shell
git config --list

删除使用者信息

shell
# 全局删除用户名
git config --global --unset user.name

# 全局删除用户邮箱
git config --global --unset user.email

提交文件

创建文件

shell
vi hello.py

添加到暂存区

shell
git add hello.py

提交文件

shell
git commit -m 'hello'