How do I get the files from a Github Restore?

Asked

Viewed 7,296 times

3

I’m doing a project that will download a Git from Github, but I want the download to be automated to the user. For this, I need to get the name of the files and folders that are in the directory. Are there any files in a file that contains the existing directories and files in each Git?

  • 1

    I know that locally this stays in the folder .git and inside the archive index.

  • Want to do this on the server or client side?

  • @Sergio always, client. It’s a C++ desktop application with Winapi.

  • 2

    Serves the zip link? https://github.com/contaUtilizador/nomeProjeto/archive/master.zip

  • 1

    @Sergio perfect. I will find a way to turn the zip into folders. Can put the comment as answer!

2 answers

3


You can use the link that github has with the project zip.

The format is:

https://github.com/containment/nominating/Archive/master.zip

inserir a descrição da imagem aqui

1

Dynamically downloading the zip to your project via the above mentioned url

https://github.com/contaUtilizador/nomeProjeto/archive/master.zip

You can extract the zip and browse freely through the directories, which will already be in your environment.

  • 1

    This answer is the exact above.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.