top | item 37812018

(no title)

danhab99 | 2 years ago

I wish git would stash changes when I checkout uncommitted code

discuss

order

Yajirobe|2 years ago

I thought git complains and doesn't allow you to checkout uncommitted code? Something along the lines of 'please commit or stash your changes before checking out'

CableNinja|2 years ago

It does, they wanted an automatic thing to happen. Imo, i would never want this by default. that complaint/warning has saved me a number of times, from breaking other things

recursivecaveat|2 years ago

You can do it as long as your changes are only to files that are otherwise identical on both ends of the checkout (meaning there's 0 possibility of conflict).