
Git
维1
这个作者很懒,什么都没留下…
展开
-
warning: LF will be replaced by CRLF in test.txt.
1.问题git在执行git add命令时出现以下警告:warning: LF will be replaced by CRLF in test1.txt. The file will have its original line endings in working directory2.原因因为Git的换行符检查功能。LF是linux下的换行符,而CRLF是enter + 换行。Git提供了一个...转载 2018-04-09 18:48:15 · 3354 阅读 · 0 评论 -
git学习命令
都是跟廖雪峰老师学的,总结一下:https://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b0001.安装git,建立用户$ git config --global user.name "Your Name"$ git config --global user.email "emai...原创 2018-05-05 00:51:15 · 179 阅读 · 0 评论 -
git pull远程项目识别的
参考:https://stackoverflow.com/questions/24114676/git-error-failed-to-push-some-refs-to在码云新建了一个项目后生成有readme.md文件在push本地项目是出现一下错误$ git push gitee masterTo gitee.com:wei_1/Tess4JDemo.git ! [reje...原创 2018-08-15 23:04:01 · 506 阅读 · 0 评论 -
git使用.gitignore 忽略文件和忽略已经提交过的文件
使用码云或者github创建项目的时候现在都会自动生成.gitignore文件,一定要注意先pull –rebase origin master 下来后在git add,也就是说先把.gitignore文件同步到本地中,在git add,否则.gitignore 文件是无效的。 我就向上面这样做了,那么怎么补救呢? https://blog.youkuaiyun.com/revitalizing/a...原创 2018-08-15 23:32:38 · 1624 阅读 · 0 评论