DEV Community


Discussion on: Usage of git stash

jessekphillips profile image
Jesse Phillips

I find git stash is best used to move changes to another branch, as it will handle merge conflicts. Though there is autostash for that. Anything else seem to get me in trouble.

You shouldn't be afraid to partial commit git has --amend and --fixup for that.

Also I came across an article about working tree to make a clone of the repo in another directory.