git常用命令

git config user.name                                                          ---查看用户名;

git config user.email                                                           ---查看邮箱;

git config --global user.name "name"                                 ---设置全局用户名;

git config --global user.email "eamil@qq.com"                  ---设置全局用户名;

git config --list                                                                    ---查看设置信息;

git reset --hard 版本号                                                      ---回退到某个版本号;

git push -f -u origin master                                               ---强制push到对应的远程分支;

原文地址:https://www.cnblogs.com/xyfer1018/p/10877952.html