git - How can I copy the tree of a particular commit to a non-working folder? -


this question has answer here:

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

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -