I can not figure out the mechanics of the action, why it does not work ... There are files in the local git repository. There is a project in GitLab (already contains files, but they differ from files from the local repository). Created a remote repository. You must send files from local to remote. When trying to push, an error is generated:
" ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'ссылка на проект в GitLab'е' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes (eg hint: 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details." I pull - git produces the following error:
branch master -> FETCH_HEAD fatal: refusing to merge unrelated histories