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 GitHub

Sajid Latif
seal-mask
.a{fill-rule:evenodd;}techdegree
Sajid Latif
Full Stack JavaScript Techdegree Student 22,368 Points

I cannot pull my origin master. How come?

Sajid-Air-2013:butler sajidlatif$ git push -u origin maste
error: src refspec maste does not match any.
error: failed to push some refs to 'https://github.com/saj1980/Butler.git'
Sajid-Air-2013:butler sajidlatif$ 

I get this error. Any idea why?

4 Answers

Sajid Latif
seal-mask
.a{fill-rule:evenodd;}techdegree
Sajid Latif
Full Stack JavaScript Techdegree Student 22,368 Points

I think I fixed the problem. I had to git add the files. Right now I can only add one file at a time. How do I git add all files in once? Do you know that.

James Barnett
James Barnett
39,199 Points

How do I git add all files in once?

To add all files in your present working directory use git add *

further reading

https://rogerdudler.github.io/git-guide/

Stone Preston
Stone Preston
42,016 Points

you typed maste instead of master.

git push -u origin maste

try:

git push -u origin master
Sajid Latif
seal-mask
.a{fill-rule:evenodd;}techdegree
Sajid Latif
Full Stack JavaScript Techdegree Student 22,368 Points

Thanks for fast reply :) Sorry. I just did not copy it right. I used the word master and I have the same issue. Any idea how come?

Great link.