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
A Lightweight Website Is Okay
A lightweight website that is often used by some people may not be the best website in the world. But it can be the best website for people in less fortunate circumstances.
By Vanza Setia
One Action
One action is better than two actions. The more actions your users are required to do, the more code you need to write too—think about that.
By Vanza Setia