Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Development Tools Git Basics Working With Remote Repositories Pushing and Pulling

Bubacarr Sowe
Bubacarr Sowe
7,652 Points

Pulling latest changes from master

I am stuck with this question:

Now that you've got my remote added to your repository, what command would you run to pull my latest changes from master?

I know the 'git pull' is he right command but couldn't get the rest of the argument correct. Thanks for helping.

3 Answers

Tim Knight
Tim Knight
28,888 Points

So in this case since the name of the remote is tommy you'd use: git pull tommy master

Bubacarr Sowe
Bubacarr Sowe
7,652 Points

Thanks once again Tim. That worked.

Tim Knight
Tim Knight
28,888 Points

No problem at all! I'm glad I could help.

Tim Knight
Tim Knight
28,888 Points

In practice git pull will automatically pull from origin I believe, but you might try git pull origin master.

Bubacarr Sowe
Bubacarr Sowe
7,652 Points

Thanks Tim. Unfortunately it is not working. Having this error: git pull is the right command, but your arguments are off. Make sure you have the right branch name (master) and/or remote name (tommy).

Tim Knight
Tim Knight
28,888 Points

Can you provide the link to the challenge you're working on?