您的位置:首页 > 其它

git使用过程中遇到的问题

2018-01-11 16:51 190 查看
windows中的换行符CRLF,而在Linux下的换行符为LF,所以在执行add .时出现错误:

rm−rf.gitrm−rf.gitgit config –global core.autocrlf false //禁用自动换行

重新初始化仓库:

gitinitgitinitgit add .

远程仓库地址错误

remote: This repository moved. Please use the new location [new location]

解决命令:

git remote -v

git remote rm origin

git remote add origin 远程地址

git文件修改而本地没有修改

! [rejected] master -> master (non-fast-forward)

error: failed to push some refs to

出现错误:

本地需要pull代码,更新成最新的,

解决命令:

- git pull --rebase origin master
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: