I’m getting this error while pushing to my project:
error: Failed to push some refs to “project (Git Project) · GitHub”
$ git push projectalpha
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 projectalpha master
$ git push --set-upstream projectalpha masterF
error: src refspec master does not match any.
error: failed to push some refs to ‘https://gitlab.com/project5342’
$ git push -u origin master
error: src refspec master does not match any.
error: failed to push some refs to ‘origin’
$ git push -u projectalpha master
error: src refspec master does not match any.
error: failed to push some refs to ‘https://gitlab.com/project5342’
$ git pull --rebase
There is no tracking information for the current branch.
Please specify which branch you want to rebase against.
See git-pull(1) for details.
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=<remote>/<branch> master
$ git pull projectalpha master
warning: redirecting to https://gitlab.com/sbce/project5342.git/
From https://gitlab.com/project5342
-
branch master → FETCH_HEAD
error: The following untracked working tree files would be overwritten by merge:README.md SUMMARY.md
Please move or remove them before you merge.
Aborting