4 ms·
Curious.... why not use feature branches for absolutely everything and follow the git flow and treat hot fixes as prescribed?
by sauronlord 13y ago
Curious.... why not use feature branches for absolutely everything and follow the git flow and treat hot fixes as prescribed?
- gamehead200 13y agoDepends on what you're working on, really. I find myself using stash when I quickly want to undo a change to check something, but preserve it for future use.
- emillon 13y agoFor example, to test partial commits: git add -p git stash test commit git stash pop
- Dirlewanger 13y agoStash is invaluable for when I need to do a hotfix or something or other and the work I'm currently doing on a feature branch is a mess of half-completed files that I just would not feel comfortable calling an actual commit. Stash allows you to save this and then come right back to it. Not every workflow needs to be followed to a T, at all times.