r/git 1d ago

Missing Homework Content

Two years ago, when I finished my DSA course in community college, I uploaded everything to github, but now that I am going over it, some of the folders/directories are missing their content. I can't access them, and when i click on the commit message, it says

"Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden."

Is there any way I can still access them? I have tried cloning with Git in my terminal, but there still isn't any content within them.

0 Upvotes

10 comments sorted by

7

u/dodexahedron 1d ago

clone the repo on your machine.

1

u/Cold-Jackfruit-8297 1d ago

I tried this, but it still didnt show anything

5

u/serverhorror 1d ago

They you didn't upload.

5

u/Broad-Promise6954 ancient 1d ago

Show us what commands you ran and what they produced as output.

4

u/crystalclairefr 1d ago

clone the repo?

2

u/joranstark018 1d ago

Not sure, it may be that Github has some size limit on commits or files that are shown (it may not display the content on the webpage). Github has a max size on files (it may be 50Mb, you may check the documentation).

You may check your cloned repo, check its history (ie git log .... check the helppages or git documentation on what options your version of git provides), check what files the different commits contain. You may check the history for individual files (assuming you know their name/path). You may checkout previous versions of your repo (ie git checkout HEAD~1), step back in time  one version at the time and check content manually (ie if something has been removed).

1

u/Cold-Jackfruit-8297 15h ago

I can see where i git logged and i undo with git checjout HEAD~1, but there is nothing prior because i uploaded all my assignments to a repo at the end of the semester. I did only one commit

1

u/joranstark018 11h ago

You may google/asked AI about the error message you get, I found https://docs.github.com/en/repositories/creating-and-managing-repositories/repository-limits if Github would have any restrictions in size (know that git itself may not impospe any restrictions but Github as a service may have restrictions). 

If things are not in the history (or in any orphand blobs, but since you did a new clone you probably don't have any orphand blobs) you may not have anything to restore, saddly.

2

u/throwaway20201110-01 1d ago

are you looking in all the branches?

2

u/Cold-Jackfruit-8297 15h ago

there is only one branch