Этот вопрос закрыт для ответов, так как повторяет вопрос Что за ошибка при push в Git?

Как отправлять файлы в репозиторий?

Ситуация такова: есть репозиторий на 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.
  • Вопрос задан
  • 1363 просмотра
Решения вопроса 1
v_decadence
@v_decadence
git pull
В ошибке написано совершенно всё, что Вам следует знать.
Что за ошибка при push в Git?
Ответ написан
Ваш ответ на вопрос

Вопрос закрыт для ответов и комментариев

Потому что уже есть похожий вопрос.
Похожие вопросы