how to upload my react files to github

^^^
23 Replies
b1mind
b1mindβ€’16mo ago
who knows React must have some special way <,<;;
beans
beansβ€’16mo ago
so thats why i am asking
b1mind
b1mindβ€’16mo ago
I was being sarcastic sorry
Jochem
Jochemβ€’16mo ago
open a new repo in github, it'll have instructions
beans
beansβ€’16mo ago
<,<;; yes but react folders have so many node modules, it wont allow me to upload everything so i was wondering if theres any special way
Jochem
Jochemβ€’16mo ago
node_modules needs to go in .gitignore, which should probably be included when you generate a react repo also, this should really go in #os-and-tools not in #front-end
beans
beansβ€’16mo ago
meh create a github channel also thnx
Jochem
Jochemβ€’16mo ago
there is a github channel, #os-and-tools
beans
beansβ€’16mo ago
oniichan so @Jochem , how exactly do i put a folder(node_modules) in a file(.gitignore)
Jochem
Jochemβ€’16mo ago
https://git-scm.com/docs/gitignore You just put the line node_modules in the textfile .gitignore
beans
beansβ€’16mo ago
cool beans ty it no work @Jochem
Jochem
Jochemβ€’16mo ago
I can't do anything with "it no work"
beans
beansβ€’16mo ago
i put "node_modules" in .gitignore i try to upload the folder, same error
Jochem
Jochemβ€’16mo ago
"same error": you never shared that error "try to upload": How? What's the output of git status?
beans
beansβ€’16mo ago
lol i use the website github to upload error: "Yowza, that’s a lot of files. Try uploading fewer than 100 at a time. " .gitignore: # Logs logs *.log npm-debug.log* yarn-debug.log* yarn-error.log* pnpm-debug.log* lerna-debug.log* node_modules dist dist-ssr *.local # Editor directories and files .vscode/* !.vscode/extensions.json .idea .DS_Store *.suo *.ntvs* *.njsproj *.sln *.sw? node_modules u der>
Jochem
Jochemβ€’16mo ago
right, so first off, chill please. I'm not just talking to you right now
beans
beansβ€’16mo ago
? ok
Jochem
Jochemβ€’16mo ago
you gave me all of 60 seconds to respond before asking if I'm still here, wtf? You need to install the git command line client on your PC, then initialize a repo in the folder your project is in, sign into github, then use git add . and git commit and git push to get your code uploaded
beans
beansβ€’16mo ago
k
Jochem
Jochemβ€’16mo ago
Right, enjoy the time out stay polite in future, spend the next hour maybe watching a git tutorial on youtube or something
beans
beansβ€’15mo ago
i actually did that so tysm
Jochem
Jochemβ€’15mo ago
did you solve your issue? πŸ™‚
beans
beansβ€’15mo ago
yeah πŸ™‚ tysm
Want results from more Discord servers?
Add your server