1

I understand that this will zip my latest commit:

git archive -o latest.zip HEAD

However, I want to zip ALL my commits in my local repository, so my colleague can traverse my commits and see different versions of my code. I want to contain the complete history of git commits.

How do I do that?

1 Answer 1

1

git archive is used for exporting a git repository and removes all git related information.

Probably git bundle is the command you are looking for. This works fine if you just want to share your repository with your colleague, so he can have a look at it. If you are working on the same project and both of you need to make changes, using a remote might be a better way to share your repository.

Not the answer you're looking for? Browse other questions tagged or ask your own question.