I have seen this too. I usually just do a git reset --hard
followed by a git clean -f -d
and it usually does the trick.
It seems to definitely happen the most often when my IDE has a lock on one of the files in the branch i’m switching from.
More Related Contents:
- Git and the Umlaut problem on Mac OS X
- I change the capitalization of a directory and Git doesn’t seem to pick up on it
- How do I change case of the names of multiple files, already committed?
- “git pull” broken
- Xcode 9 commit: Couldn’t communicate with helper application
- git: command not found (on OS X 10.5)
- Git push error ‘[remote rejected] master -> master (branch is currently checked out)’
- What does the git index contain EXACTLY?
- Is it possible for git-merge to ignore line-ending differences?
- How to add Git’s branch name to the commit message?
- Git pre-push hooks
- How to remove sensitive data from a file in github history
- Pull a certain branch from the remote server
- Another git process seems to be running in this repository
- Flexible vs static branching (Git vs Clearcase/Accurev)
- How do I name and retrieve a Git stash by name?
- Merge development branch with master
- Git branch strategy for small dev team [closed]
- Convert Mercurial project to Git [duplicate]
- Why does git sign with GPG keys rather than using SSH keys?
- To use on Visual Studio Code, but show “Could not read from remote repository.”
- Go to particular revision
- Is there a way in git to obtain a push date for a given commit?
- How to trigger a build only if changes happen on particular set of files
- git rebase merge conflict
- Git copy file preserving history [duplicate]
- Git: which is the default configured remote for branch?
- GitHub pages only showing ReadMe file?
- Why do changing adjacent lines but modifying independently cause a git merge conflict?
- Git create branch from range of previous commits?