pkj
pkj

Reputation: 781

Recover from GitHub Desktop

I don't use GitHub very frequently and hence I do not have clarity over technical wordings of GitHub.

A few times I have saved my thesis including Matlab codes using Git Shell, last was around three months back. Because of some reason I would like to have all the files which were saved at some specific point of time, I am interested in retrieving all the files as a bundle or zip.

Is it possible? (I hope it should be). If yes please let me know how.

I have GitHub Desktop installed in my computer. enter image description here

Thanks

Upvotes: 0

Views: 606

Answers (1)

Lasse V. Karlsen
Lasse V. Karlsen

Reputation: 391456

What you're looking for is the git archive command.

You can use it like this:

git archive --format=zip --output=path\to\your\archive.zip REVSPEC

REVSPEC is either the tag, branch name, or commit hash of the "point in time" you want to build the archive from.

Since I don't use GitHub Desktop I don't know if this particular command is available in the GUI but if it is it is probably named "archive" or something similar as well.

Upvotes: 1

Related Questions