标签:内容 upd replace windows details directory help hat its
warning: LF will be replaced by CRLF in about/index.html.
The file will have its original line endings in your working directory
原因是存在符号转义问题;windows的换行符为CRLF,Linux下的为LF。执行:
git config --global core.autocrlf false
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., ‘git pull ...‘) before pushing again.
hint: See the ‘Note about fast-forwards‘ in ‘git push --help‘ for details.
勾选了 Initialize this repository with a README这项,导致远程仓库不为空,解决办法,先将远程仓库的内容合并到本地,然后再上传即可,命令如下:
git pull --rebase origin master
git push -u origin master
标签:内容 upd replace windows details directory help hat its
原文地址:https://www.cnblogs.com/chenguifeng/p/12356205.html