I\'m trying to push my project (all files in a new repository). I follow the steps but when I push with git push -u origin master I get this error:
git push -u origin master
You need to do
git branch
if the output is something like:
* (no branch) master
then do
git checkout master
Make sure you do not have any pending commits as checking out will lose all non-committed changes.