BAE添加部署后使用git上传代码遇到的问题

前两天开发微信公众号,使用百度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目录下,就可以了。我没测试过,以后遇到类似的问题可以试一试。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值