Having cloned a git repo I want to retrieve all commits associated with a certain file, printed out each one in a separate file.
This must have something to do with git log or git format patch.
thanks.
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 use
git rev-listto retrieve sha1 of all commit touching a path:This will give you a list sha1 of each commit that touch that path. If you want the commit message and patches, you can use
git log: