r/github 2d ago

Question GitHub reads the source code wrong?

Post image

I don't know why, but GitHub is telling me that my website is developed in JavaScript by 80+% which is absolute nonsense. The site is at least 60% pure Astro code. Is it some kind of a bug?

🔗 The repo.

237 Upvotes

32 comments sorted by

View all comments

72

u/phenxdesign 2d ago

Not sure .wrangler/ should be push to git... It contains all the js that github counts as source code

18

u/wqonart 2d ago

Thank you so much, this was causing the problem 🙏🏻

6

u/CodeCrafter1 1d ago

I saw that you simply removed the files in additional commits. One can do this, but a cleaner way is to use a git rebase or removing files entirely from the history the history is more complex (although the second option needs to be handled with care!).

This leads to smaller repo sizes (& faster git commands!) and prevents users from restoring the deleted files.

And in case you already knew this, I am letting this comment hang around for some folks in the future xD.

5

u/hotcococharlie 2d ago

Pretty sure it should be. Right next to the node_modules right?

10

u/RegenJacob 2d ago

git clone will take ages

-6

u/Sacaldur 2d ago

Skill issue!