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

Type the command to link the GitHub repository at https://github.com/alysonla/portfolio.git to our local project. Use a

use a remote name or "origin"

2 Answers

Hi,

You're looking for this:

git remote add origin https://github.com/alysonla/portfolio.git

This is basically telling git to add a remote repository located at (your URL), and call it origin. That way, once you're ready to start pushing your code to Github, you use a syntax like 'git push origin master'. (Master here is the master, or main, branch of your local git repository).

Hope that helps!

The code works for me. git remote add origin https://github.com/alysonla/portfolio.git