Ситуация такова: есть репозиторий на Gitlab.
SSH: git@gitlab.com:name/repository.git
HTTPS:
https://Botev@gitlab.com/name/repository.git
У меня на ПК есть папка с документами, которые необходимо время от времени отправлять на репозиторий.
Каким образом это реализовать?
Выскакивают ошибки такого рода при попытке отправить файлы:
USER@USER-CN MINGW32 /d/Desktop/ROFAS/main (master)
$ git push rofas
fatal: unable to update url base from redirection:
asked for: https://Botev@gitlab.com/name/repository.git/ROFAS...
redirect: https://gitlab.com/users/sign_in$ git push origin master
To https://gitlab.com/name/repository.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://Botev@gitlab.com/name/repository.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.