r/github • • Aug 03 '26

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.

277 Upvotes

38 comments sorted by

View all comments

69

u/phenxdesign Aug 03 '26

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

18

u/wqonart Aug 03 '26

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

7

u/CodeCrafter1 Aug 04 '26

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.

1

u/wqonart Aug 06 '26

I'm aware that it is possible, but I have no experience with Git history manipulation (because I'm afraid I'll break it). But, maybe it is the best solution to clean up commit mess in the repo.

Thank you for your feedback and the articles, it is time for me to learn how to use Git properly XD

5

u/hotcococharlie Aug 03 '26

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

9

u/RegenJacob Aug 03 '26

git clone will take ages

-4

u/Sacaldur Aug 03 '26

Skill issue!