Git查看当前信息

# 查看当前所有配置信息
git config --list
# 查看当前配置的用户信息
git config --global user.name
git config --global user.email
# 查看当前仓库的用户信息
git config user.name
git config user.email
# 只查看用户的信息
git config --global --list

 

git修改密码

# git的凭据
git credential-cache exit 
# git中全局凭据
git config --global --unset credential.helper
# 如果凭据保存在windows中
git credential-wincred erase

 删除掉凭据之后,如果再push,或者其他操作git就会提示输入账号信息,再重新创建即可!

posted @ 2024-07-11 16:38  学python的菜鸟  阅读(1)  评论(0编辑  收藏  举报