Rezor666
15-08-2013, 16:49
Я замучился с данным пакетом...
Сделал репозиторий на удаленном сервере, добавил файл, закомментил, склонировал на локальную машину.
Отредактировал файл на локальной машине, закоментил, добавил origin и сделал push.
Получил
C:\Documents and Settings\Administrator\Desktop\git\test>"C:\Program Files\Git\b
in\git.exe" push origin
Counting objects: 8, done.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (6/6), 619 bytes | 0 bytes/s, done.
Total 6 (delta 1), reused 0 (delta 0)
error: insufficient permission for adding an object to repository database ./obj
ectserror: unpack failed: unpack-objects abnormal exit
Дал права на папку.
Получил
C:\Documents and Settings\Administrator\Desktop\git\test>"C:\Program Files\Git\b
in\git.exe" push origin
Counting objects: 8, done.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (6/6), 619 bytes | 0 bytes/s, done.
Total 6 (delta 1), reused 0 (delta 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: error: is denied, because it will make the index and work tree inconsist
ent
remote: error: with what you pushed, and will require 'git reset --hard' to matc
h
remote: error: the work tree to HEAD.
remote: error:
remote: error: You can set 'receive.denyCurrentBranch' configuration variable to
remote: error: 'ignore' or 'warn' in the remote repository to allow pushing into
remote: error: its current branch; however, this is not recommended unless you
remote: error: arranged to update its work tree to match what you pushed in some
remote: error: other way.
remote: error:
remote: error: To squelch this message and still keep the default behaviour, set
remote: error: 'receive.denyCurrentBranch' configuration variable to 'refuse'.
! [remote rejected] master -> master (branch is currently checked out)
Что он от меня хочет?
Сделал репозиторий на удаленном сервере, добавил файл, закомментил, склонировал на локальную машину.
Отредактировал файл на локальной машине, закоментил, добавил origin и сделал push.
Получил
C:\Documents and Settings\Administrator\Desktop\git\test>"C:\Program Files\Git\b
in\git.exe" push origin
Counting objects: 8, done.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (6/6), 619 bytes | 0 bytes/s, done.
Total 6 (delta 1), reused 0 (delta 0)
error: insufficient permission for adding an object to repository database ./obj
ectserror: unpack failed: unpack-objects abnormal exit
Дал права на папку.
Получил
C:\Documents and Settings\Administrator\Desktop\git\test>"C:\Program Files\Git\b
in\git.exe" push origin
Counting objects: 8, done.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (6/6), 619 bytes | 0 bytes/s, done.
Total 6 (delta 1), reused 0 (delta 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: error: is denied, because it will make the index and work tree inconsist
ent
remote: error: with what you pushed, and will require 'git reset --hard' to matc
h
remote: error: the work tree to HEAD.
remote: error:
remote: error: You can set 'receive.denyCurrentBranch' configuration variable to
remote: error: 'ignore' or 'warn' in the remote repository to allow pushing into
remote: error: its current branch; however, this is not recommended unless you
remote: error: arranged to update its work tree to match what you pushed in some
remote: error: other way.
remote: error:
remote: error: To squelch this message and still keep the default behaviour, set
remote: error: 'receive.denyCurrentBranch' configuration variable to 'refuse'.
! [remote rejected] master -> master (branch is currently checked out)
Что он от меня хочет?