STAT545-UBC / Discussion

Public discussion
37 stars 20 forks source link

Unable to push changes to GitHub #539

Open jaganmohanakola opened 5 years ago

jaganmohanakola commented 5 years ago

Followed the steps till Push to your fork with the given command in tutorial git push origin your-new-branch-name

the above command is modified from my side as git push origin MyFirstApp-Branch1

and the below error shows up: FirstIssue.txt FirstIssue.txt

error: src refspec MyFirstApp-Branch1 does not match any. error: failed to push some refs to 'https://github.com/jaganmohanakola/MyFirstApp.git'

All the commands used to get to this stage are in the attached file for your reference. FirstIssue.txt

asha15 commented 5 years ago

@jaganmohanakola I think you did not created a branch called < MyFirstApp-Branch1 >

I recommend you to try this steps.

  1. git checkout -b "branch-name" 2.git add 3.git commit -m "your comment" 4.git push origin "branch-name"