Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

Add alias for git stash --include-untracked #127

Open
salcode opened this issue Feb 2, 2021 · 0 comments
Open

Add alias for git stash --include-untracked #127

salcode opened this issue Feb 2, 2021 · 0 comments

Comments

@salcode
Copy link
Member

salcode commented Feb 2, 2021

@michealengland pointed out that git stash --include-untracked

would be more convenient with an alias (though we can shorten it to git stash -u, however I don't like this shortened version because it reminds me of git add -u, which is the opposite of git stash -u in that it ONLY affects tracked files 🙄 )

Perhaps we could call it git pokemonstash (Gotta stash'em all) with

pokemonstash = stash --include-untracked

I thought git stashall might be a more traditional alternative but git stash --all already exists which does something else, so this would be confusing.

This option is only valid for push and save commands.

All ignored and untracked files are also stashed and then cleaned up with git clean.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant