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

James Barrett
James Barrett
13,253 Points

I didn't create a feature branch and worked directly on master which is creating an error... What has happened?

I pushed to master on my_clone_project and I am receiving this error message, what exactly is going on under the hood? https://i.gyazo.com/9ba10569b2d2d531d207b32b609569fe.png

4 Answers

Nelisa Loreto
Nelisa Loreto
5,436 Points

Sorry, not an answer - but this happens to me too even when I am working on a branch. It worked after I set the suggested config in the error message (receive.denyCurrentBranch = warn). But I've run into other problems (per my latest question)... so I still think I'm missing something.

Lots of new errors in the version of git I'm using which haven't been covered in the videos unfortunately.

Christopher Parke
Christopher Parke
21,978 Points

This is exactly what happened to me and as far as I can tell I followed along without any issues up until this point.