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 PointsI added git and started a repository but why is it trying to upload my computer
Git is asking to track all of my folders on my computer did I do something wrong?
8 Answers
Salman Akram
Courses Plus Student 40,065 PointsHi Jonathan,
Yes, it is seeking your project folder in your computer desktop or directory before you can start to git repo. You don't have file yet.
Let's open your terminal to play around:
cd Desktop (goes to Desktop)
mkdir my_first_project (create any file name)
now cd my_first_project (use this folder, make sure same name you just create)
Hints: 2:32
Most popular - TryGit
Hope that helps.
Jonathan Ankiewicz
17,901 Pointsokay cool, thanks for the help. Now if I wanted to grab a folder I had exsiting exactly how would I do that. Would I "cd <folder>" then "cd<folder>" until i have my folder and add and commit it from there
Salman Akram
Courses Plus Student 40,065 PointsExactly correct. cd stand for change directory to locate file, mkdir stand for make directory or create new file.
Jonathan Ankiewicz
17,901 PointsThank you, I assume it's safe to say that I am allowed to interact with the files as if I wasn't on git while they are on my computer correct? such as storing files(css, js, php) and images
Salman Akram
Courses Plus Student 40,065 PointsYes right, you can work with your files in your desktop without git. If you want all history from git logs, like you are finished one html page and then add commit "finish HTML page" into git history before transferred to GitHub and then next you will work on JS page before commit again. Same process.
I think, you can try start to create project folder in your desktop and try to locate folder by using "cd [file name]"
Jonathan Ankiewicz
17,901 Pointshaha okay now how do I back out of this folder so I can access my exisiting folder that I actually want to upload to github?
Salman Akram
Courses Plus Student 40,065 PointsJust type "cd" without file name, it will go back to original directory and then type again "cd [your file name] :)
Jonathan Ankiewicz
17,901 Pointsthanks
Jonathan Ankiewicz
17,901 PointsI am trying to delete the folder but it wont let me checkout of it or use the git rm -rf .git command
Salman Akram
Courses Plus Student 40,065 PointsJonathan, you will understand more easier when you play around with it. You can try to review Git and Github on our library here or use google for instruction. ;)
Jonathan Ankiewicz
17,901 PointsThanks I will use them both. I would love it if there was a walk through, everytime they start the videos they start them after these basics are already setup.
William Li
Courses Plus Student 26,868 PointsJonathan Ankiewicz hi, there, you can give this Udacity FREE course a try. How to Use Git and GitHub, this is a much more hand-on approach, the course is designed for total beginner, so it goes in great detail at explaining lots of underlying concepts of git.
Jonathan Ankiewicz
17,901 PointsSo I got this going, I also found a package install for sublimetext that will speed the process up even more. Not the biggest fan of using short cuts before fully grasping the basic concept but seems to be the same flow/commands just at a faster speed.
But, now I am having trouble launching files from git into my sublimetext.. Any recommends?