Size: a a a

2020 December 17

AZ

Alexander Zaitsev in pro.git::next
Roman
если файлы в репозитории изменились
git pull
источник

R

Roman in pro.git::next
ну я пытался
источник

AZ

Alexander Zaitsev in pro.git::next
и что пишет?
источник

R

Roman in pro.git::next
warning: Pulling without specifying how to reconcile divergent branches is
discouraged. You can squelch this message by running one of the following
commands sometime before your next pull:

 git config pull.rebase false  # merge (the default strategy)
 git config pull.rebase true   # rebase
 git config pull.ff only       # fast-forward only

You can replace "git config" with "git config --global" to set a default
preference for all repositories. You can also pass --rebase, --no-rebase,
or --ff-only on the command line to override the configured default per
invocation.
fatal
: refusing to merge unrelated histories
```
источник

AZ

Alexander Zaitsev in pro.git::next
Roman
warning: Pulling without specifying how to reconcile divergent branches is
discouraged. You can squelch this message by running one of the following
commands sometime before your next pull:

 git config pull.rebase false  # merge (the default strategy)
 git config pull.rebase true   # rebase
 git config pull.ff only       # fast-forward only

You can replace "git config" with "git config --global" to set a default
preference for all repositories. You can also pass --rebase, --no-rebase,
or --ff-only on the command line to override the configured default per
invocation.
fatal
: refusing to merge unrelated histories
```
ну так всё верно. Просто сделай то, что он просит
источник

R

Roman in pro.git::next
ошибка та же
источник

AZ

Alexander Zaitsev in pro.git::next
не, быть того не может. значит ты чего-то недоговариваешь
источник

R

Roman in pro.git::next
я сначала склонировал пустой репозиторий и создал README , потом его изменили и теперь я не могу сделать push пока не получу изменения
источник

AZ

Alexander Zaitsev in pro.git::next
Roman
я сначала склонировал пустой репозиторий и создал README , потом его изменили и теперь я не могу сделать push пока не получу изменения
1) пуш ты можешь сделать, просто сделав git push --force (но это наверняка не то, что ты хочешь)
2) я пока что так и не увидел ошибку, какая у тебя есть. вангую на мерж конфкликты. сделай git stash && git pull
источник

R

Roman in pro.git::next
и еще одна ошибка
источник

R

Roman in pro.git::next
[ender@enginet project-for-salavat]$ git push
Host key fingerprint is SHA256:HbW3g8zUjNSksFbqTiUWPWg2Bq1x8xdGUrliXFzSnUw
+---[ECDSA 256]---+
|        .ooo=*BE+|
|        . XOoBB+o|
|         BB=*++o |
|        .= B=oo. |
|        S +.+oo  |
|         o     . |
|          .      |
|                 |
|                 |
+----[SHA256]-----+
Enter passphrase for key '/home/ender/.ssh/id_ecdsa':
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Delta compression using up to 2 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 284 bytes | 284.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
remote: GitLab: You are not allowed to push code to protected branches on this project.
To gitlab.com:salavat-salat/project-for-salavat.git
! [remote rejected] master -> master (pre-receive hook declined)
источник

AZ

Alexander Zaitsev in pro.git::next
remote: GitLab: You are not allowed to push code to protected branches on this project.
To gitlab.com:salavat-salat/project-for-salavat.git
! [remote rejected] master -> master (pre-receive hook declined)
источник

AZ

Alexander Zaitsev in pro.git::next
дальше иди разбирайся, чо это на гитлабе у тебя прав нет пушить в мастер
источник

R

Roman in pro.git::next
так это чужой репозиторий
источник

AZ

Alexander Zaitsev in pro.git::next
кек
источник

R

Roman in pro.git::next
он сказал что права есть
источник

AZ

Alexander Zaitsev in pro.git::next
значит он тебе соврал
источник

R

Roman in pro.git::next
ну написано что у меня права разработчика
источник

AZ

Alexander Zaitsev in pro.git::next
Roman
ну написано что у меня права разработчика
значит права разработчика по какой-то причине не дают тебе пушить в мастер. я ж понятия не имею, как у вас там настроен гитлаб
источник

R

Roman in pro.git::next
нда
источник