152 days ago · Tech · hide · Fediverse post

I missed publishing notes from the last two weeks. I didn’t do much reading during those weeks. How to recover a dropped stash in Git? Though I’m a long-time-novice Git user. At times, I do discard file changes after a git stash pop. I know, I should be doing git stash apply instead of git stash pop. Then safely clear the stash. Being an average human writing code, I do my fair share of mistakes. Anyways, two answers from this Stack Overflow question are really helpful for recovering lost stashes. If you recently did a drop or pop, you may be able to find the hash from the terminal. Like mentioned in the top voted answer, you can run git stash apply <hash> to recover the changes. If you can’t find the hash, another answer has a script to list hashes of available stashes in the repo. One of the recent ones would be the one you are looking for. Reminder: you can stitch together lots of little HTML pages with navigations for interactions A good reminder by Jim on the possibilities with…

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town