GIT-CLEAR-SOFT(1)
π git-clear-soft β bestie's guide to the soft reset π
okay so picture this: you're in the git-extras manual, section GIT-CLEAR-SOFT(1), and this lil command is about to give your repo a glow-up without nuking the stuff you actually care about. let's get into it π«Ά
β¨ NAME β¨
git-clear-soft β soft clean up a repository π§Ήπ
πΈ SYNOPSIS πΈ
git-clear-soft
that's it. no flags, no arguments, no drama. she's low maintenance fr fr β¨
π DESCRIPTION π
okay so here's the vibe: git-clear-soft clears your repository into a state that looks like it was freshly cloned with the current HEAD. brand new. iconic. main character energy. π«
BUT β and this is the important part bestie β it preserves all changes that are located in files and directories listed in .gitignore. so everything you ghosted via .gitignore? still there. still thriving. untouched. π
mechanically, it's a git-reset --hard together with deletion of all untracked files that reside inside the working directory β excluding those in .gitignore. π
so like:
<rainbow>git-reset --hard</rainbow>β yes, she goes hard π- delete all the untracked files chillin in your working directory ποΈ
- BUT skip anything in
.gitignoreβ those are protected, no cap π‘οΈβ¨
it's giving "spring cleaning but I'm keeping my emotional support .env file" ππ
π EXAMPLES π
clears the repo. that's the whole thing. go off π
$ git clear-soft
β οΈ real talk bestie: this deletes untracked files in your working directory. not a drill. the .gitignore ones are safe, everything else is on its own. vibe check your repo before you hit enter fr fr π
π AUTHOR π
this lil script was written by Daniel 'grindhold' Brendle <grindhold@gmx.net>, and it's a modified version of that script, modified by Matiss Treinis <mrtreinis@gmail.com>. legends only π«Άβ¨
π REPORTING BUGS π
found a bug? not the vibe. tell the people here:
<https://github.com/tj/git-extras/issues>
they will handle it. slay. π
π¦ SEE ALSO π¦
<https://github.com/tj/git-extras>
that's the whole page bestie, you ate this one ππ«
Git Extras Β· May 2026 Β· GIT-CLEAR-SOFT(1) β ok bye love u, go clean that repo responsibly ππΈπ¦
π¦ where this page comes from
- ubuntu stonking: git-extras 7.5.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms