git+tp5出现的问题
tp5框架里有好多 .gitignore,
在推到git远程仓库的时候,会把框架必须的东西也过滤掉(tp5为啥写这些东西,只过滤一下日志文件啥的不行么???),
现在我把tp5写好的东西打包后下载到阿里云服务器,然后
在阿里云创建本地仓库 => 推到码云 => clone到我的电脑并创建本地仓库 => 把我的电脑的项目文件替换成和阿里云上一样的 => 再推到码云 => 在阿里云服务器上更新然后出问题了
问题如下:
error: The following untracked working tree files would be overwritten by merge:
.gitignore
.travis.yml
。。。
。。。
Please move or remove them before you can merge.
Aborting
这个怎么解决?怎么能够只更新更改过的文件,同时让git忽略这些untracked working tree files
试过
git reset --hard 就把本地仓库这些untracked working tree files删掉了
git stash 命令不能用 报错fatal: Not a git repository (or any of the parent directories): .git