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 Introduction to Git First Commits Initializing a Repository

Sarah Breidenbach
Sarah Breidenbach
4,490 Points

Can I create a repository on a USB drive?

Can I create a repository on a USB drive in case my computer dies? And also, would that be useless if I lost the working directory?

2 Answers

Steven Parker
Steven Parker
230,274 Points

It would be handy if you lost the working directory, because you could re-create the project from the repository.

Only if you want to... ..in the event that your computer dies, you need not worry about your work as it will remain safe online. Simply clone your repo of choice to your new computer~

Steven Parker
Steven Parker
230,274 Points

That would only apply if there is an online repo. From the question, it wasn't clear if the USB repo might be the only one.