ArticleHow 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
Image CAPTCHA
Enter the characters shown in the image.
You are reporting a typo in the following text:
Simply click the "Send typo report" button to complete the report. You can also include a comment.