Since the GIT library has been moved directly, which causes Git to not work properly, after searching the git configuration file, we finally found the configuration of the path.
[Email protected]:~/work/git/qemu$ git status
Switch ' /media/sf_vmwork/git/qemu ': No such file or directory
/media/sf_vmwork/git/ QEMU/DTC
In the ". Git" directory, find "Modules/dtc/config", edit the file, and change the path to your current path.
[Email protected]:~/work/git/qemu/.git$ vim modules/dtc/Config1[Core]2Repositoryformatversion =03FileMode =false4Bare =false5Logallrefupdates =true6Worktree =/home/xxx/work/git/qemu/DTC7Symlinks =false8ignorecase =true9[Remote"Origin"]TenFetch = +refs/heads/*: refs/remotes/origin/*11 url = git://git.qemu-project.org/dtc.git
Then, then it's OK!
[Email protected]:~/work/git/qemu$ git status# on branch master
GIT library migration-non-clone mode