The push was rejected by the remote

It shows this error while commit:
The push was rejected by the remote. This is usually because the remote has commits that aren’t in the local repository.

What should i have to do?

Try going to the Shell tab and executing git push(manually pushes to the repository), then show us the error here.

1 Like

I fixed that problem by creating new branch and merge with main branch😅