DEV Community

Discussion on: The No Jargon Guide – Article 1 – Git & GitHub

 
fesoque profile image
fesoque • Edited

Thank you Laura... How do I go about a situation where I have my HTML files in the parent folder and my CSS and JavaScript files are inside subfolders (Stylesheet folder and script folder) in the parent folder...

Can I target the respective files I want to push to GitHub without pushing my whole project folder as it contains other files, like this?:

C:\Users\yourname\OneDrive\Desktop\Project\index.html

C:\Users\yourname\OneDrive\Desktop\Project\StyleSheet\main.css

C:\Users\yourname\OneDrive\Desktop\Project\Script\demo.js.

-If your answer is yes, can I push them at once or I have to push the files three times considering the fact that they are in different subfolders.

Thanks always!!

Thread Thread
 
lauracharvey profile image
lauracharvey

Hmm that’s a toughy! Do they need to be in seperate folders? Or could you have all 3 files that you want to push in the same folder? If you want to keep them seperate that’s fine I think you would need to do a push for the parent to a new repo and then you can create sub folders to that parent repo! 😁

Thread Thread
 
fesoque profile image
fesoque

Ok thanks