廖老师,我本地克隆远程仓库learngit以后,用git status 总是提示工作区Text.txt或者test.txt发生了修改;但是我明明是刚克隆下来的仓库什么修改都没做如下图所示
$ git status
On branch master
Your branch is up to date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: Test.txt
no changes added to commit (use "git add" and/or "git commit -a")
特意删除了仓库,重新克隆了一次有这样的warning:
warning: the following paths have collided (e.g. case-sensitive paths
on a case-insensitive filesystem) and only one from the same
colliding group is in the working tree:
'Test.txt'
'test.txt'
还有一点就是,在以上的情况下,我想在本地建立与远程对应的分支dev;就会报错如下:
$ git checkout -b dev origin/dev
error: Your local changes to the following files would be overwritten by checkout:
Test.txt
Please commit your changes or stash them before you switch branches.
Aborting
落魄的毛哥
廖老师,我本地克隆远程仓库learngit以后,用git status 总是提示工作区Text.txt或者test.txt发生了修改;但是我明明是刚克隆下来的仓库什么修改都没做如下图所示
特意删除了仓库,重新克隆了一次有这样的warning:
还有一点就是,在以上的情况下,我想在本地建立与远程对应的分支dev;就会报错如下: