Skip to content

How to reset chezmoi #3247

Closed Answered by twpayne
Archie-2021 asked this question in Q&A
Sep 17, 2023 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

If you were committing files to git then you can reset your dotfiles repo to a previous commit. See the git documentation for how to do this.

Otherwise, you can restore from backup.

Otherwise, if you have no git history and no backup, then you can reset the chezmoi source directory by removing it, i.e. rm ~/.local/share/chezmoi.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Archie-2021
Comment options

@twpayne
Comment options

@Archie-2021
Comment options

Answer selected by Archie-2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants