How can I create an archive of the current repository including local uncommitted changes using git archive?
Join Stack Overflow to learn, share knowledge, and build your career.
|
|
||||
|
|
|
I know this is old, but I think I found a solution. Run:
Since git wants a solid commit to make an archive, we can make a 'one off' commit using If you are worried about the space from the dangling commit, you can clean it up with a |
|||||
|
|
Improving nevsan's answer for my purpose - to archive latest code in any case (committed or not):
|
|||||||||
|
|
If you haven't committed the changes, then |
|||
|
|
|
Another solution with
|
|||
|
|