Here's a screenshot of what I'm dealing with:
I'm a new GitBash user and am getting this error when trying to push to GitHub.
I was following this tutorial. So far I've not run into any problems, except I get this error when I try to push:
Fatal: master cannot be resolved to branch Things I've done correctly:
- I am signed in
- I have specified my name and email using
git config -global... *blah blah* - Everything is committed and should be ready to push
- I'm on the master branch that I wish to push.
- I've added my remote repository using command
git remote add origin https://github.com/Tawnwen/MyApp.git. - I tried to push using the command
git push -u origin master
Can anyone please help?
git branch?Masterinstead ofmaster. Try creating a new branch (and immediately switch to it) withgit checkout -b masterand then use that to push to Github withgit push -u origin master.master. Trying to dogit checkout mastertells me that I'm already in the master branch. I'm still getting the same error!Mastertomasterin.git/refs/heads): stackoverflow.com/questions/38034866/…