I would like to download the files that are the difference between two branches into a local folder. Is it possible with Git?
Given the files are only added to the source branch, they are not changed.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can get all changes between branches with something around these lines:
If you only add [text] files, then it would be trivial to parse the diff file and break it into individual files. (I’d say, it’s a ruby script under 50 lines of code)