4 ms·
If your work-in-progress files are trivial, it's easy to create a temp directory with a .gitignore with just a '*' in it and leave your files there. If it's no
by RichardCA 4y ago
If your work-in-progress files are trivial, it's easy to create a temp directory with a .gitignore with just a '*' in it and leave your files there.
If it's not so trivial, create a local temp branch so you can cherry-pick it or merge it back in later, or maybe convert your temp branch into a more enduring one.
Stashes are pseudo-commits with no branch context, and are more of a conceptual burden then they're worth.
- ilyt 4y agoor just type git stash do whatever you need git stash pop done > Stashes are pseudo-commits with no branch context, and are more of a conceptual burden then they're worth. They are literally just commits like everything else. They just land in refs/stash, where branches/tags live. Man the shit people say about how git works while not knowing how git works... It's essentially a temporary branch with some syntactic sugar to manage You can even just convert it to normal branch git branch cake stash@{0}
- RichardCA 4y agoDude, have you ever tried the .gitignore trick? It really does come in handy. And your overall tone was uncalled-for. Cheers.