BAE添加部署后使用git上传代码遇到的问题
2015-06-06 16:11
405 查看
前两天开发微信公众号,使用百度BAE(百度应用引擎)发布应用到网络。但是在上传应用时遇到一些Git代码托管时的问题。
问题1:
在网上查找了一些解决方案,方法如下:
用git自带的配置命令
问题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目录下,就可以了。我没测试过,以后遇到类似的问题可以试一试。
问题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目录下,就可以了。我没测试过,以后遇到类似的问题可以试一试。
相关文章推荐
- QT编写的嵌入式工业控制系统
- Leetcode: Length of Last Word in python
- Laravel 5 中使用ckfinder的问题。config.php设置。
- 20个需要掌握的代码命名小贴士
- 初次学习PHP总结
- 记录自己的php学习之路
- Python学习日记---函数
- 使用源码gcc-4.8.2安装c++编译器C++11
- 【Thinking in Java笔记】Java环境变量CLASSPATH
- python类型转换
- 一致代码段和非一致代码段
- 第十四周项目 处理C++源代码的程序
- C++ CSTRINGLIST用法
- leetcode--Rotate Image
- C语言字符串操作函数
- Qt5.4连接MySql
- Effective C++ 条款44
- 委托和接口
- python 装饰器 decorator
- 探讨深入Java虚拟机之内存优化