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
droporpop, you may be able to find the hash from the terminal. Like mentioned in the top voted answer, you can rungit 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 HTML, CSS, and a sprinkle of JavaScript.
Ideal failures
Your list of ideal failure modes isn’t real.

Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.