git异常

1.  SSL certificate problem: self signed certificate

  因git默认是ssl方式验证,在采用http请求时,是使用的账号密码方式,因此需要git放行。

  在gitbash中键入以下命令即可关闭ssl的强制验证。

       >git config --global http.sslVerify false

2. connection timeout

  在使用ssh进行连接,怎么也连接不通,有时是不允许ssh验证,可尝试使用http请求。

3. 

On branch master
Your branch is ahead of 'origin/master' by 1 commit.
  (use "git push" to publish your local commits)
nothing to commit, working tree clean

一般在变换分支,merge时,会出现。

1. 在merge时使用   git merge branch   --no-commit   不提交方式merge

2.如果已经merge了使用: git reset --soft origin/master  重置commit即可。或者无所谓修改个值,通过--amend进行提交一个新的和原有merge的合并掉。

原文地址:https://www.cnblogs.com/DennyZhao/p/9542808.html