前两天开发微信公众号,使用百度BAE(百度应用引擎)发布应用到网络。但是在上传应用时遇到一些Git代码托管时的问题。
问题1:
在网上查找了一些解决方案,方法如下:
用git自带的配置命令
git config --global http.sslVerify false
问题2:
使用git status命令的时候,远程有更改却提示working directory clean,所以无法使用push提交代码
解决方案:
在stackoverflow上看到类似的问题:http://stackoverflow.com/questions/22067873/git-nothing-to-commit-working-directory-clean
其中的解决方案:
Found what was wrong. I don't understand how, but .git directory path somehow was changed to other path than I was working in. So then anything I changed was not checked, because git was checking in other place. I noticed it, when I reinitialized it and it showed that it reinitialized entirely different directory. When I cd .. from my current directory and cd to it back again and then reinitialized yet again, then it switched back to correct .git directory and started seeing my changes.
意思是git未检测到更新目录,此时将目录切换到上一级,再切换到.git目录下,就可以了。我没测试过,以后遇到类似的问题可以试一试。