reset
command performs a hard reset of your git repository while carefully preserving all files in the .codegen
directory. This is useful for undoing codemod changes while keeping your codemod implementations intact.
codegen reset
, it:
.codegen
directory, preserving their content and staged/unstaged statusgit reset --hard HEAD
) on the repository.codegen
files to their previous state, including their git staging status.codegen
)git checkout .
as it:.codegen
git clean
) while protecting .codegen
.codegen
.