my friend and I, we were making some kind of project and we used GIT for our versioning software, but after I pulled his code from the gitlab, and made few changes and commited that changes, I wanted to push back to gitlab, but when then, this warning and error:
warning: redirecting to https://gitlab.com/Sanady/project.git/
To https://gitlab.com/Sanady/project
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://gitlab.com/Sanady/project'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Is there any fix? I tried to push repo by flag -f (force) but still that was not working...