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

Github: The current branch master has no upstream branch.

While i try to run the following command with a little modification as i don't want to add README.md , it gives a strange msg. The following the git setup repo echo "# Responsive" >> README.md git init git add README.md git commit -m "first commit" git remote add origin https://github.com/uname/repo.git git push -u origin master

while my command is mostly like

git init git add * git commit -m "first commit" git remote add origin https://github.com/uname/repo.git git push -u origin master

which gives me following error

fatal: The current branch master has no upstream branch. To push the current branch and set the remote as upstream, use

git push --set-upstream origin master

I had this error before and googled saved me but i want to decrypt this message. While if i understand this right, i need to setup upstream branch, but isn't master a upstream branch or i am understanding upstream wrongly. ?