S
S
Stanislav Botev2017-06-01 10:55:45
git
Stanislav Botev, 2017-06-01 10:55:45

How to submit files to the repository?

The situation is this: there is a repository on Gitlab.
SSH : [email protected]:name/repository.git
HTTPS : https://[email protected]/name/repository.git
I have a folder on my PC with documents that need to be pushed to the repository from time to time.
How to implement it?
Errors like this when trying to push files:
[email protected] MINGW32 /d/Desktop/ROFAS/main (master)
$ git push rofas
fatal: unable to update url base from redirection:
asked for: https://[email protected] .com/name/repository.git/ROFAS...
redirect: https://gitlab.com/users/sign_in

$ git push origin master
Tohttps://gitlab.com/name/repository.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to ' https://[email protected]/name/repository.git '
hint: Updates were rejected because the remote contains work that you do
hint : do 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: (eg, 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Victor, 2017-06-01
@StasBotev

git pull
Everything you need to know is written in the error.
What's wrong with push in Git?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question