dnstotal.blogg.se
Kategorier
Allmänt
Arkiv
November 2022
Om
8 November 2022 - 18:11
Fus ro dah mod
Allmänt
-x ignores all gitignores, nuking everything and bringing us back to a clean repo as if just cloned, except….
git clean -fd removes any untracked files and ( -d) directories, and….
-hard then resets the index and working tree to HEAD, nuking any changes to tracked files, after which….
git reset sets the current branch head to a given commit which defaults to HEAD and thus has no effect here, but….
This builds off the common git nuke alias, mine being git reset -hard & git clean -fdx -e _stuff:
Om Mig: