I forked the Flask repository and cloned its website branch from GitHub like
git clone --recursive https://github.com/lovesh/flask.git -b website Then i configured remote like
git remote add upstream https://github.com/lovesh/flask.git -t website git fetch upstream Then i made the changes(i didnt create any additional files but modified 2 files) i had to make then added the files and committed the changes like this
git add . git commit . This prompted me for a comment for the commit and i entered the comment. Now it showed me
2 files changed, 69 insertions(+), 7 deletions(-) But when i try to push these changes to my GitHub account
git push origin master it shows the error
error: src refspec master does not match any. error: failed to push some refs to 'https://github.com/lovesh/flask.git' I looked around and people who had this issue said that they did not commit the changes as here and here. But i did commit even then it shows me this error. To confirm i tried
git status and it showed
# On branch website # Your branch is ahead of 'origin/website' by 1 commit. # nothing to commit (working directory clean) Also git log also shows my commit in the log. I am new to git. Am i missing something?