I need to export to an archive a set of commits in a git repository.
How do I do this?
Using svn, I could choose commits and export to zip.
I need to export to an archive a set of commits in a git
Share
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.
To export the repository up to a certain commit:
git archive -o export.zip <COMMIT>. Replace<COMMIT>with the commit number you want to export.To create a patch between two commits:
git diff COMMIT1 COMMIT2 > patch.txt