user@DESKTOP-CA77D88:~/caw/mailcow-dockerized$ echo "testing" >> testfile && git add testfile && git commit && git push
[master 1f13d5c] test
1 file changed, 1 insertion(+)
create mode 100644 testfile
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
user@DESKTOP-CA77D88:~/caw/mailcow-dockerized$ git push --set-upstream origin master
To
gitlab.com:knush/mailcowrc.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'git@gitlab.com:knush/mailcowrc.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.
user@DESKTOP-CA77D88:~/caw/mailcow-dockerized$