Как скопировать все измененные файлы из последнего коммита в 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^ - последний коммит

../ - директория в которую нужно копировать файлы

 

Tags: 

Add new comment

CAPTCHA
Spam protection
Target Image