2

I decided to backup all my github data and found this: https://help.github.com/en/github/understanding-how-github-uses-and-protects-your-data/requesting-an-archive-of-your-personal-accounts-data

I managed to get the .tar.gz file and it seems to contain all my repositories but there is no source code in there. Judging by the size, it looks like some kind of archive in objects/pack/*.pack

Is there any way to access original source code?

johnymachine
  • 681
  • 2
  • 7
  • 27

1 Answers1

2

it looks like some kind of archive in objects/pack/*.pack

According to Download a user migration archive:

The archive will also contain an attachments directory that includes all attachment files uploaded to GitHub.com and a repositories directory that contains the repository's Git data.

Those might be bare repositories or bundles.
Once uncompressed, try and git clone one of those folders (to a new empty folder)

The OP johnymachine confirms in the comments:

git clone .\repositories\username\repository.git\ .\repository\

Meaning repository.git is a bare repo (Git database only, no files checked out)

VonC
  • 1,129,465
  • 480
  • 4,036
  • 4,755