push to git repositoty

Job ID: 34931846

Budget: $10 – $30 USD

Hi there I need to push my work saved on my local machine. to a remote git repository. I could git add and git commit but git push gives me an error. :

To https://github.com/Red-Abierta/soa-api.git
! [rejected] main -> main (fetch first)
error: failed to push some refs to 'https://github.com/Red-Abierta/soa-api.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.
Related categories: JavaScript Git