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 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?