Press "Enter" to skip to content

“git trash”

I often end up doing test bumps of dependencies that leave my repo with a ton of trash changes that I just want to be able to undo easily and reset my repo including any new or deleted files and directories, so I added this to my .gitconfig :

this lets me run git trash to quickly stash all my unstaged changes and delete all my untracked files at once, which I couldn’t find any other solution for.

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *