Git pull reports an error
error: cannot pull with rebase: your index contains uncommitted changes.
error: Please commit or stage them
Solution:
1. Execute
git stash
first
2. Then execute
git pull – rebase
3. Finally, execute
git stash pop
Remember to git stash pop after git stash, otherwise the code will be lost
Git stash: # can be used to temporarily store work in progress
git stash Pop: # read the last saved content from git stack
Read More:
- Git pull and Git pull origin master Warning: Pulling without specifying how to reconcile divergent branches
- Git Pull error: Your local changes to the following files would be overwritten by merge:
- Git pull code error fatal: authentication failed fo
- Git Pull Error:The following untracked working tree files would be overwritten by merge
- Git Pull Error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errfno 10054
- Docker Pull Error: certificate signed by unknown authority
- Mac Docker pull Error: Error response from daemon: Get https://xx.xx.xx.xx/v2/: Service Unavailable
- [Solved] Git error: bad signature 0x00000000 fatal: index file corrupt
- [Solved] git Error: error: Your local changes to the following files would be overwritten by merge
- Git: How to Solve Error: Please commit your changes or stash them before you merge.
- [Solved] Kafka Start Log Error: WARN Found a corrupted index file due to requirement failed: Corrupt index found
- [Solved] URIError: Failed to decode param ‘/%3C%=%20BASE_URL%20%3Estatic/index.%3C%=%20VUE_APP_INDEX_CSS_HASH%20%3E.css’
- [Solved] Git submits locally to the remote warehouse Error: failed to push some refs to…
- [Solved] fatal: not in a git directory Error: Command failed with exit 128: git
- The index.nvue page of uniapp reports an error about CSS
- How to Fix Error Cannot find command ‘git‘ – do you have ‘git‘ installed and in your PATH?
- vscode git error: would clobber existing tag [How to Solve]
- git error:invalid path [How to Solve]
- Git fatal: No configured push destination. Either specify the URL from the command-line or co
- [Solved] 01654 error: the index cannot be extended through 8