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 trialTim Luchtefeld
1,183 PointsCommand Prompt
If I don't push my work from the command prompt to git hub and I exit out the command prompt will all my work be lost? Or is github solely for collaborating with other people? I appreciate any feedback. Thank you!
3 Answers
James Barnett
39,199 PointsIf I don't push my work from the command prompt to git hub and I exit out the command prompt will all my work be lost?
When you save your files in the text editor they are saved on your local computer. When you commit a file it goes to your local repo, and then you can push it to remote repo such as github.
Or is github solely for collaborating with other people?
Github has 3 main uses
- A way to backup of local files
- Pushing local repo to a remote repo (e.g. Github)
- A way to sync files between computers
- Cloning a repo from remote repo (e.g. Github) to a local repo
- A way to allow others to collaborate
To learn more about git check out fabulous git - the simple guide.
missgeekbunny
37,033 PointsIt's just for sharing. As long as you save it will all be there. I know because I work on just my computer by myself.
Tim Luchtefeld
1,183 PointsOk thank you very much. This may be a dumb question but how exactly do I save all my work in the command prompt? Or did you mean just to have sublime text and stuff saved. Thank you i greatly appreciate the help!!
missgeekbunny
37,033 PointsThe sublime text stuff is what I meant by saving your stuff. Anything you do in your text editor just be sure to save and all the files should be right there if you log off and back on or even turn your computer off.
Tim Luchtefeld
1,183 PointsThank you! I'll be sure to do that!!
Tim Luchtefeld
1,183 PointsThank you James for the feedback that is good to know!