解决git从remote clone后所有文件都改变的问题

 遇到2次这种情况了,git从remote clone项目代码后发现所有文件都要改变,因为权限改变了,可以通过git来设置忽略权限变化

  git config --global core.fileMode false

git关联本地分支到远程分支的命令:

git branch --set-upstream-to origin/dev_remote dev_local

使用git命令时,报下面这个错,这里其实是电脑没有安装对应的ca证书,所以无法通过https连接到git服务器。

  fatal:unable to access ': SSL certicate problem: unable to get local issuer certificate

设置git的ssl验证跳过了这个错误(win下)

  git config --global http.sslVerify






posted on 2017-09-18 17:35  GulperMao  阅读(1130)  评论(1编辑  收藏  举报