Skip to content

How do I track changes inside a tracked directory? #3988

Answered by twpayne
plucafs asked this question in Q&A
Discussion options

You must be logged in to vote

And when I delete the same file, neither chezmoi add .config/fish/functions and chezmoi re-add works.

That is correct. You need to use chezmoi forget or chezmoi destroy.

To give more context, I never use chezmoi cd and I always edit the files in the source directory, and use chezmoi re-add, with auto commit and auto push enabled.

You should use chezmoi cd. chezmoi re-add does not handle the case you want (although this might change in the future, see #2298).

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@plucafs
Comment options

@twpayne
Comment options

Answer selected by plucafs
@plucafs
Comment options

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