git push -u origin master
error: src refspec master does not match any.
error: failed to push some refs to 'git@bitbucket.org:ahmad/react-app.git'
if we write
git push then
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin master
how can solve it
HI @adilalam
Might be you have not yet committed or added the changes to repo..
Please follow the below process and see if you can resolve this.
1. Change the dir
$ cd <Dir_name>
2. Add the files/dir
$ git add .
3. Commit the changes
$ git commit -m "<Commit Message>"
4. Push the changes to repo
$ git push -u origin master
Please let me know if you need anything else.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.