stop
Reverts all unstaged changes to tracked files, and delete all untracked files and directories. Intended usage is when stopping a project where configuration changes are stored in a stash. When we stop the application, we want to revert the unstaged changes (which we are expecting to just be the configuration changes) so we have a clean working directory.
Usage:
git stop
CLI Command
git config --global alias.stop "!git checkout -- . && git clean -fd"
.gitconfig Snippet
[alias]
stop = !git checkout -- . && git clean -fd