GIT library migration-non-clone mode

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.