As you can see from the picture the last 4 commits from me haven't been pushed because another person made a commit before me and I did not pull. Now it says that I am 4 ahead and 1 behind. When I try to push it says:
To git@XX.XX.XX.XX:compudoc.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'git@XX.XX.XX.XX:compudoc.git'
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. If you did not intend to push that branch, you may want to
hint: specify branches to push or set the 'push.default' configuration variable
hint: to 'simple', 'current' or 'upstream' to push only the current branch.
How can I fix it ?