DEV Community

Discussion on: 4 Git shortcuts that define my workflow

Collapse
 
sirclesam profile image
Sirclesam

You win just for the cmd names.

I get paranoid about losing my stash, especially if I get pulled into somewhere else in the middle, so only use it when I'm going to apply it right away. For anything longer than a few min I've gotten comfortable with committing with an awful commit message (REVERT ME!!!! RABBLE RABBLE) then doing a soft reset to the prev commit when I need to resume.

It would be helpful if you repeated the command under where you're describing it. I found myself scrolling back up to see what you were talking about.

Collapse
 
bholmesdev profile image
Ben Holmes

Good callout on repeating the commands! Just added that edit 👍

I also 100% agree on the stash itch. These days, I almost feel physically itchy when I'm hanging onto a stash or some important code in my clipboard. It's like I need to get it out of my head and into the computer again 😆

Collapse
 
sirclesam profile image
Sirclesam

I should note that I use a GIT GUI (smartgit) so my prev commit message are easily seen and I won't leave commits like the one above in any pushed code.