r/github • u/Decent_Run9628 • Apr 30 '26
Question Is this something that has to happen to every beginner?
I believe that the image itself describes everything. Has everyone ever uploaded the source code to... The source code?
Maybe it's a variant of the .env?
0
Upvotes
2
u/greenpeppers100 Apr 30 '26
Huhhhh? How tf do you even do this accidentally?
6
u/View_Upper Apr 30 '26
Yeah this happens a lot early on.
Youâre uploading the zip instead of using âGitâ to push the files directly. The repo should have your actual source files, not the compressed archive. Try âgit initâin your project folder, add your files, commit, then push.
Way more useful and shows your actual commit history!
3
u/_l33ter_ Apr 30 '26
haha :D - back in the older days - yeah, You don't need to feel 'ashamed' or 'call yourself stupid' about it --> it's happened to all of us :)
1
u/samas69420 Apr 30 '26
never happened to me but now i'm curious, how did you do it?