Size: a a a

2020 August 01

R

Roman in pro.git::next
вот весь
источник

R

Roman in pro.git::next
[ender@archlinux sca]$ git push
Enumerating objects: 11, done.
Counting objects: 100% (11/11), done.
Delta compression using up to 2 threads
Compressing objects: 100% (6/6), done.
Writing objects: 100% (7/7), 1.59 KiB | 232.00 KiB/s, done.
Total 7 (delta 1), reused 0 (delta 0), pack-reused 0
remote: error: refusing to update checked out branch: refs/heads/master
remote: error: By default, updating the current branch in a non-bare repository
remote: is denied, because it will make the index and work tree inconsistent
remote: with what you pushed, and will require 'git reset --hard' to match
remote: the work tree to HEAD.
remote:
remote: You can set the 'receive.denyCurrentBranch' configuration variable
remote: to 'ignore' or 'warn' in the remote repository to allow pushing into
remote: its current branch; however, this is not recommended unless you
remote: arranged to update its work tree to match what you pushed in some
remote: other way.
remote:
remote: To squelch this message and still keep the default behaviour, set
remote: 'receive.denyCurrentBranch' configuration variable to 'refuse'.
To /home/ender/git/sca
! [remote rejected] master -> master (branch is currently checked out)
error: failed to push some refs to '/home/ender/git/sca'
источник

Dv

Dr. Friedrich von Ne... in pro.git::next
Эээ
источник

Dv

Dr. Friedrich von Ne... in pro.git::next
Ты точно хочешь сделать пуш в /home/ender/git/sca?
источник

Dv

Dr. Friedrich von Ne... in pro.git::next
Себе на диск пуш сделать? Не куда-то на сервер?
источник

R

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

R

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

Dv

Dr. Friedrich von Ne... in pro.git::next
Ок, тогда у тебя неправильно настроен ремоут. Покажи git remote -v
источник

R

Roman in pro.git::next
[ender@archlinux sca]$ git remote -v
origin  /home/ender/git/sca (fetch)
origin  /home/ender/git/sca (push)
источник

Dv

Dr. Friedrich von Ne... in pro.git::next
Так, ну, тут никакого Гитлаба нет. Надо сделать чтобы был гитлаб.
источник

Dv

Dr. Friedrich von Ne... in pro.git::next
https://stackoverflow.com/a/2432799/2684760 вот этот ответ смотри
источник

R

Roman in pro.git::next
[ender@archlinux sca]$ git remote -v
origin  git@gitlab.com:enderman08/sca.git (fetch)
origin  git@gitlab.com:enderman08/sca.git (push)
источник

Dv

Dr. Friedrich von Ne... in pro.git::next
Во, вот тут хорошо!
источник

JC

Julian =) Coffee in pro.git::next
На гитхабе же все написано
источник

R

Roman in pro.git::next
я делал git clone папки
источник

Dv

Dr. Friedrich von Ne... in pro.git::next
Roman
я делал git clone папки
Поэтому она стала считаться ремоутом твоего репозитория. Ты с ней типа как с сервером теперь работаешь.
источник

R

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

Dv

Dr. Friedrich von Ne... in pro.git::next
Переносить откуда куда?
источник

JC

Julian =) Coffee in pro.git::next
А, гитлаб
источник

R

Roman in pro.git::next
из папки в папку
источник