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 trial

Development Tools

how 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.

Could you explain yourself a little more. I'm not sure I understand what you want to do.

4 Answers

You 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).

I 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

Why 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.

I 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

thanks, I paid though

You 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.