DEV Community

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

Collapse
 
lauracharvey profile image
lauracharvey

Yay!!! I love this! So glad you found my guide and really hope it helps you creating your first repo. Any questions please get in touch 😁

Collapse
 
fesoque profile image
fesoque • Edited

Hey Laura, if you don't mind, I have a dumb question to ask:

  • I just completed a project and I'd like to push it to Git/GitHub, which of the project files is meant to be pushed-- the HTML file, CSS or both ??
Thread Thread
 
lauracharvey profile image
lauracharvey

Hey!! There are no dumb questions 😁 all the files related to that project that are needed to make it work or needed for someone looking to fork it should be added/pushed 😁

Thread Thread
 
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