Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJonathan Ankiewicz
17,901 Pointshow do I put files into git folders on the desk top so I can use everything
I finished all of the classes but how doI create a folder to start pulling and adding and making my repository. I feel I have a good grasp but the first first step is what I am missing.
4 Answers
Jonathan Cousins
4,160 PointsYou can use Github to remotely store your files.
- Create a repo on github
- Create a local git repo
git init
(for one project, usually at the root of the folder which contains all the project files) - Add and commit your files
git add .
git commit -m "my message"
(these can be any files) - Follow the instructions on github to link your local repo with the github repo
- Push all commits to github
git push -u origin --all
There you have a remote copy of your project files. BEAWARE, github is free but all your files are public. You need to pay to keep them private (or use bitbucket).
Jonathan Ankiewicz
17,901 PointsI got git going,
"echo "# weAllInternet" >> README.md git init git add README.md git commit -m "first commit" git remote add origin https://github.com/Ankiewicz/weAllInternet.git git push -u origin master" logged in, and now I want to create a file for my reps. but I don't know where to find that file to open it up. As well as I can't find a basic index file to upload, i just asks if I want to track all of what I believe is my desktop folders
Jonathan Cousins
4,160 PointsWhy do you want to do this?! Why not just use git to keep track of projects inside your own file structure? Git isn't meant as a backup solution for a PC hard-drive.
Jonathan Ankiewicz
17,901 PointsI know but I assume they have to be stored somewhere when I am or am not using them. Where do I store images to go with my html files? Where do I store css and js files, I assume there has to be some sort of actual hands on interaction while I am at my computer
Jonathan Ankiewicz
17,901 Pointsthanks, I paid though
Jonathan Cousins
4,160 PointsYou paid for github? Then you're set to put your files onto github privately. Remember not to lump all your files into one repo. Git isn't made for that.
Jonathan Cousins
4,160 PointsJonathan Cousins
4,160 PointsCould you explain yourself a little more. I'm not sure I understand what you want to do.