Skip to content

Workflow for automatically commit and push changes in source directory #2738

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

You must be logged in to vote

chezmoi

However for daily changes this doesn't seem to work for me, i.e. when I do changes in my source directory and then run chezmoi apply. Is this supposed to work?

No. autoCommit and autoPush only work when chezmoi knows that you've made changes to your source directory, i.e. after commands like chezmoi add, chezmoi edit, chezmoi import, and so on.

chezmoi apply only tells chezmoi to update your home directory. You might have local changes that you're just testing and don't want to commit yet, so it doesn't autocommit or autopush.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by axhamre
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