I'm trying to uploud my local project for the first time, when I do the $git push
command the following error is returned:
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
After applying the tip the error is returned:
Warning: Permanently added the RSA host key for IP address '---------------' to the list of known hosts.
To github.com:LuisMatheus-dev/Gama-Academy.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'git@github.com: LuisMatheus-dev / Gama-Academy.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
How should I proceed ?