
Git
小黄蓉
心中无敌、天下无敌
展开
-
Git初学使用记录fatal: this operation must be run in a work tree解决办法
fatal: this operation must be run in a work tree$ git add test.txtfatal: this operation must be run in a work tree解决办法原因是我们把text.txt添加到.git文件夹中了,所以返回上个文件夹Huang Rong@DESKTOP-O2VRRQO MINGW64 ~/te...原创 2018-11-10 16:35:38 · 27392 阅读 · 5 评论 -
Git初学者关于本地仓库Local的全部使用(包括init, add, commit, reset等操作)
开始使用Git前的重要配置$ git config --global user.name "Rong Huang"$ git config --global user.email "xxx@xxx.com"用pwd命令查看当前目录Huang Rong@DESKTOP-O2VRRQO MINGW64 ~$ pwd/c/Users/Huang Rong用下原创 2018-11-10 23:37:04 · 881 阅读 · 0 评论 -
Git使用出现warning: LF will be replaced by CRLF 的完美解决办法
Huang Rong@DESKTOP-O2VRRQO MINGW64 ~/Documents/git/testgit (master)$ git add test.txtwarning: LF will be replaced by CRLF in test.txt.The file will have its original line endings in your working di...原创 2018-11-11 04:48:13 · 3751 阅读 · 0 评论 -
Git本地仓库连接Github/GitLab远程仓库
在Github上创建一个新项目不要初始化,然后本地仓库已有的项目,通过第二段内容,remote和push到Github出现错误Huang Rong@DESKTOP-O2VRRQO MINGW64 ~/Documents/git/testgit (master)$ git push -u origin mastererror: src refspec master does not mat...原创 2018-11-11 16:11:44 · 1445 阅读 · 0 评论