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!
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
I keep getting this fatal error. I've even restarted the project to see if I made a mistake.
$ git push fatal: The current branch new_feature has no upstream branch. To push the current branch and set the remote as upstream, use
git push --set-upstream origin new_feature
I used git push and got this error after we pulled from origin and then corrected a conflict. (Actually I got this error some times earlier but it wasn't a problem)
Oh and I use Git Bash on Windows.
The answer is in the error message. Git doesn't know your upstream branch so when you ran
git push it gave you the error and how to fix it. Once you set the upstream, you'll be able to just do