简体   繁体   中英

How to create local git repository from git archive?

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM