Git Stash
Problem
You want to run git rebase command, but you still have unstaged changes. You get the following error after executing git rebase -i 70d0caa:
error: cannot rebase: You have unstaged changes.
error: Please commit or stash them.
You do not want to commit the changes yet. How can you solve this?
Solution
You solve the problem with git stash.
Excute git stash. This command will stash all your unstaged changes. Then, you can run git rebase. After the rebase is done, execute git stash pop to get back all the unstaged changes.
Topic(s).
Thank you for reading this Git Stash. You can subscribe to all my articles with the Articles RSS. If you have a positive or negative comment, please send me an email or contact me through one of my social media accounts.
Share with your network
Copy this link and send it to great people only.
https://vanzasetia.xyz/blog/git-stash/
For you
Why Do Web Developers Write Code in an Editor Instead of Directly in a Browser?
Have you ever thought about such a question? I never did until I saw that question on Stack Overflow. Here are my reasons to use a code editor instead of a browser to write code.
By Vanza Setia
Web Developers Should Stand against Thoughtlessness
In the past, developing responsive websites was a nightmare. Now you can develop websites without writing any code at all. But one line of code can destroy your website's responsiveness. You shall not make such a mistake.
By Vanza Setia