
Git
我就SEI我啊
这个作者很懒,什么都没留下…
展开
-
[Git]fatal: unable to access ...: Failed to connect to github.com port 443: Timed out
$ git pullfatal: unable to access 'https://github.com/9group/canon.git/': Failed to connect to github.com port 443: Timed out原因是没有输入指定用户名和密码:在这种情况下,我们可以修改下载的仓库的URL地址,格式就是https://username:passwor转载 2016-08-17 14:33:19 · 4658 阅读 · 1 评论 -
github常见操作和常见错误!错误提示:fatal: remote origin already exists.
http://blog.youkuaiyun.com/dengjianqiang2011/article/details/9260435如果输入$ Git remote add origin git@github.com:djqiang(github帐号名)/gitdemo(项目名).git 提示出错信息:fatal: remote origin already exists.转载 2016-08-17 14:34:59 · 1088 阅读 · 0 评论 -
[git] warning: LF will be replaced by CRLF | fatal: CRLF would be replaced by LF
遇到这两个错误,是因为Git的换行符检查功能。core.safecrlfGit提供了一个换行符检查功能(core.safecrlf),可以在提交时检查文件是否混用了不同风格的换行符。这个功能的选项如下:false - 不做任何检查warn - 在提交时检查并警告true - 在提交时检查,如果发现混用则拒绝提交建议使用最严格的 true 选项。CRLF转载 2016-08-17 14:35:43 · 868 阅读 · 0 评论 -
git pull命令更新本地项目的时候遇到“No remote repository specified……”的错误
有些用户在使用git pull命令更新本地项目的时候会遇到“No remote repository specified……”的错误,那么要如何解决呢?git pullfatal: No remote repository specified. Please, specify either a URL or aremote name from which new revisions转载 2016-08-17 14:36:21 · 9003 阅读 · 1 评论 -
[Git] error: Your local changes to the following files would be overwritten by merge
如果系统中有一些配置文件在服务器上做了配置修改,然后后续开发又新添加一些配置项的时候,在发布这个配置文件的时候,会发生代码冲突:error: Your local changes to the following files would be overwritten by merge: protected/config/main.phpPlease, commit y转载 2016-08-17 14:36:57 · 997 阅读 · 0 评论 -
Git问题Everything up-to-date解决
出现这个问题的原因是git提交改动到缓存,要push的时候不会将本地所有的分支都push掉,所以出现这个问题。我们应该告诉git提交哪个分支。这里有种特殊的情况是如果你是fork别人的仓库再clone到本地的话,即使git上只有一个主分支,他还是可能出现这个错误。那么我们就需要新建分支提交改动然后合并分支。接下来先创建一个新分支提交改动[html] view plain原创 2016-08-17 14:37:35 · 7403 阅读 · 0 评论