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

General Discussion Putting a Project on GitHub

crystalh
seal-mask
.a{fill-rule:evenodd;}techdegree
crystalh
Front End Web Development Techdegree Student 3,104 Points

what is the difference between create vs add a repository? Why is it sometimes I cannot add repository?

I don't understand the logic between create a repository vs adding a repository? Am I adding a repository to a existing repository that I have already created? If i create a repository under My Documents\GitHub\ and name it my_site. How do i add a repository under my_site?

1 Answer

Steve Brewer
Steve Brewer
15,030 Points

Create will make a new folder, add will add an existing folder. So if you have a folder with project files in it already it will already have those ready to commit.

crystalh
seal-mask
.a{fill-rule:evenodd;}techdegree
crystalh
Front End Web Development Techdegree Student 3,104 Points

Thank you Steve. I just realized the 'Changes' and 'History' tabs on the top. I was always on the History tab so I never see the files I added. And sometimes it goes back to the Changes tab when I click the tutorial repository. I was so confused. Now i feel stupid, this what drives me crazy the past couple of days.