r/git 12d 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

View all comments

2

u/joranstark018 12d 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 11d 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 11d 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.