Hacker News new | ask | show | jobs
by chrisweekly 3768 days ago
a couple things helped me get into a comfortable flow w/ git: realizing git stash creates a commit (accessible via git reflog show stash). v helpful for managing interrupts, and gaining confidence you're not going to lose any work.

also, learning to be quick to create (and dispose of) branches, as they're just names.

1 comments

> accessible via git reflog show stash

You can just do "git stash list".

IIRC, standard git clients don't show you the commit sha with 'git atash list', hence the extra few chars (easily skipped w an alias). shrug