Компьютерный форум OSzone.net  

Компьютерный форум OSzone.net (http://forum.oszone.net/index.php)
-   Хочу все знать (http://forum.oszone.net/forumdisplay.php?f=23)
-   -   Работа с Git (http://forum.oszone.net/showthread.php?t=266243)

Rezor666 15-08-2013 16:49 2202144

Работа с Git
 
Я замучился с данным пакетом...
Сделал репозиторий на удаленном сервере, добавил файл, закомментил, склонировал на локальную машину.
Отредактировал файл на локальной машине, закоментил, добавил 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)

Что он от меня хочет?

exo 15-08-2013 16:56 2202152

Цитата:

Цитата Rezor666
remote: error: You can set 'receive.denyCurrentBranch' configuration variable to »

http://jetwalker.blogspot.de/2012/01...entbranch.html ?

Rezor666 15-08-2013 17:07 2202162

exo, ощибка исчезла, push пошел, но новый закомменченый файл не ушел на главный репозиторий.


C:\Documents and Settings\Administrator\Desktop\git\test>"C:\Program Files\Git\b
in\git.exe" push origin
Counting objects: 5, done.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 337 bytes | 0 bytes/s, done.
Total 3 (delta 1), reused 0 (delta 0)
To ssh://
5c202da..8a99b01 master -> master

exo 15-08-2013 17:18 2202170

Rezor666, я хз, я просто передал слова гугла ))) я даже не понимаю о чём речь >_<


Время: 04:46.

Время: 04:46.
© OSzone.net 2001-