How to copy all changed files from the last commit in git

Sorry for my English! English is not my native language. One of the reasons to create this blog is to improve my English writing. So I will be highly obliged if you will help me with this. If you find a grammar error on this page, please select it with your mouse and press Ctrl+Enter.

cp -pv --parents `git diff --name-only HEAD^` ../

HEAD^ - last commit

../ - directory to copy files

 

Tags: 

Add new comment

CAPTCHA
Spam protection
Target Image