How to pull a git repo from github with all unlinked commits

Solution 1:

There is no command I'm aware of which says "bring down all commit objects in the remote repository, even those that are unreferenced".

You can only bring commits with a reference in the remote repository. You can do this with the command:

git fetch [remote] [remoteBranch]:[localBranch]

The remote repository will need to create a reference to any dangling commits before you can fetch them. If you have access to the remote repository, you can do this with a command like:

git fsck --lost-found

The output will show you any dangling commits. Give them a reference with git branch [branchname] [commit sha1], then you can fetch them.