0

Is it possible to recreate a git repository locally from the extracted content of a Github repository archive ?

To add a little bit of context, my Android app downloads a git repository archive using DownloadManager and a Github repository archive link, then extracts it on the local storage of the device. I am looking to turn the content of this extracted archive into a local repository of the remote one and track its contents.

J. Doe
  • 85
  • 12

1 Answers1

1

It is not, alas. The result of git archive contains neither commits nor other metadata.

The only way to track a remote repository is to clone it.

phd
  • 82,685
  • 13
  • 120
  • 165