Better HN
topnewbestaskshowjobs
Log inSign up

darderp

2 karma · joined Jun 25, 2019 (7y ago) · 3 submissions

Submissions

comment 6y ago · link · parent

How would the auto stashing work if you were to checkout in an irregular pattern? Say I:

- Make changes to branch A

- Checkout B (A changes are auto stashed)

- Make changes to B

- Checkout C (B changes are auto stashed)

- Checkout A again

As far as I know git stashes are FIFO, so it wouldn't be that easy to pop my stash for branch A at this point.

comment 6y ago · link · parent

Not quite a "best practices", but absolutely have a look at this: https://twitter.com/i/events/994601867987619840