git - How can I copy the tree of a particular commit to a non-working folder? -
this question has answer here:
- do “git export” (like “svn export”)? 29 answers
i have local git repository , want copy of files particular revision folder outside of working directory. assuming single command.
i'm missing obvious, can't life of me work out.
thanks, lj
simplest way:
git_work_tree=../other/path git checkout -f <hash> -- *
Comments
Post a Comment