Is there a chezmoi equivalent to git checkout
#2866
Answered
by
twpayne
agingorange
asked this question in
Q&A
-
To undo changes, I go to the repo and do |
Beta Was this translation helpful? Give feedback.
Answered by
twpayne
Mar 16, 2023
Replies: 2 comments
-
No, there is no equivalent chezmoi command. You can create a shell function: chezmoi-checkout() {
chezmoi git checkout -- $(chezmoi source-path $*) && chezmoi apply -v $*
} and then run $ chezmoi-checkout $filename |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
agingorange
-
Excellent! Thanks much. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, there is no equivalent chezmoi command.
You can create a shell function:
and then run
$ chezmoi-checkout $filename