Skip to content

Is there a chezmoi equivalent to git checkout #2866

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

You must be logged in to vote

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

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by agingorange
Comment options

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