An error occurred during the update of the project today, which could not be solved after a long period of debugging.
error reason:
Couldn't save uncommitted changes.
Tried to save uncommitted changes in stash before Update, but failed with an error.
Couldn't stash file://H:/IdeaProjects/SVSP_0.4: git-write-tree: error building trees
Cannot save the current index state
After gradual investigation, it was found that colleagues uploaded redundant files, which caused the collective failure to update. The solution is as follows:
Enter
- into your project directory. My directory is
H:\IdeaProjects\ svsp_0.4
. Right-click on Git Bash here and type Git status
. Notice the Unmerged paths Unmerged paths:
(use "git reset HEAD <file>..." to unstage)
(use "git rm <file>..." to mark resolution)
both deleted: .idea/artifacts/SVSP0_4.xml
- was found because there were extra files uploaded, and
both deleted:
followed by .idea/artifacts/ svsp0_4.xml
this file is typed in git rm.idea /artifacts/ svsp0_4.xml
and then enter the idea update to resolve the problem Read More:
- IDEA报Unable to save settings: Failed to save settings. Please restart IntelliJ IDEA
- Solution to 800b0001 failure of Windows Update
- Solution to communication link failure with error in idea startup project
- Solution to CUDA installation failure problem visual studio integration failed
- Idea couldn’t be found org.springframework.context .support
- Solution summary of VMware network card without IP and failure to start network card (continuous update)
- Git authentication failure solution, due to the problem of password modification
- Solution: DevTools failed to load SourceMap:… net::ERR_HTTP_RESPONSE_CODE_FAILURE problem
- Solution to the problem of Chinese garbled in gradle console in idea
- Keras saves save() and save in the model_ weights()
- Failure: waiting for status update. MMC read failed
- Solution to the problem of failure to elect leaders when offline service is reported in Nacos
- Solving the problem of saving object set by save() function in R language
- Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.* signatures do not match the previously
- UE4 cannot save the asset. The asset uasset failed to save
- [Solved] Spark Writer tidb Error: read-uncommitted is not supported
- To solve the problem that deep in 20.2 system cannot save and transform the format of typora, and provide an effective installation method of typora
- Solution / error of. Net framework 4.0 installation failure HResult 0xc8000222 solution
- Solve the problem of prompt couldn’t find path to unrear library after installing unrear in Python
- XMIND save error “a jsonobject text must begin with ‘{at 1 [character 2 Line 1]” solution