This error is reported in Git when deleting a branch. When deleting a branch, the current branch cannot stay on the branch to be deleted. Switch to any other branch, and then delete the target branch. Reference: git delete local branch git Delete remote branch
This article is shared in the blog “it Yunqing” (CSDN).
Similar Posts:
- fatal:’origin’ does not appear to be a git repository fatal:Could not read from remote re…
- A rejected – non fast forward error occurred in eclipse push
- Git pull does not specify an error message for the branch
- A rejected – non fast forward error occurred in eclipse push
- [Solved] Git switch branch error: error: Your local changes to the following files would be overwritten by checkout:
- Git Status Warming: Your branch is ahead of ‘origin/master’ by 1 commit…
- Git Unable to switch remote branches error: pathspec ‘origin/XXXX’ did not match any file(s) known to git
- Git Pull Error: Please specify which branch you want to merge with.
- Git clone download code prompts that the file pointed to by head does not exist
- docker: Error response from daemon: Conflict. The container name “/xx” is already in use