github executes pull error

Solve The current branch is not configured for pull No value for key branch.master.merge found in config


1. Find the config file in the local project directory (mine is in E:\rocket\rocket\.git);
2. Modify the config The file content is:
[core]
    repositoryformatversion = 0
    filemode = false
    logallrefupdates = true
    [branch "master"]
        remote = origin
        merge = refs/heads/master
    [remote "origin"]
        url = https://github.com/androidzhaoxiaogang/ rocket.git (modified to your own url)
        fetch = +refs/heads/*:refs/remotes/origin/*
3. Execute the pull method again and find that the work is ok

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326565094&siteId=291194637