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

Erick Martinez
Erick Martinez
2,894 Points

Trying to set up my website via GitHub pages. Having a hard time with Git on the terminal

Anyone know why this happens? I delete my original repo and created a new one. I also deleted the folder in finder and created a new folder and did "git init" that folder via the terminal but when I do "git pull" I get this error.

fatal: No remote repository specified. Please, specify either a URL or a remote name from which new revisions should be fetched

Also if I do "git branch add-index.html" I get this error

fatal: Not a valid object name: 'master'.

I am so confused

1 Answer

Patricia Hector
Patricia Hector
42,901 Points

Hi there, I don't know if you have seen these courses; these will definitely guide you to accomplish what you want to do.

  1. Git Basics AND Introduction to Git.
  2. GitHub Basics.
  3. Hosting a Website with Github pages.

In the #3 you will find the answer to your question, how to create a repository on Github, how to link it to your local development via Git and which new brand you need to create to host your page on the Github platform.