Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Projekt GIT w zdalnym repo
Matrix12
post
Post #1





Grupa: Zarejestrowani
Postów: 144
Pomógł: 0
Dołączył: 22.03.2015

Ostrzeżenie: (0%)
-----


Witam,


posiadam projekt w katalogu /var/www, chciałbym aby użytkownik mógł pobrać to repo i to nie jest żadnen problem po SSH może ścignać. Jednak chciałbym aby użytkownik mógl pobierać dane tak git clone ssh://name@ip/home/repository/project.git

Czyli po wklejeniu tej ścieżki będzie mógł zrobić pull i ściagnac projekt na localhost czy gdzieś tam.. ale zrobi git push to aby zmiany były wczytane w projekt trzeba wejsc w /var/www/ i tam zrobić git pull..




Problem mam z wykonaniem tego.. czy ja muszę zrobić skrót do .git czy jak do tego podejść?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Matrix12
post
Post #2





Grupa: Zarejestrowani
Postów: 144
Pomógł: 0
Dołączył: 22.03.2015

Ostrzeżenie: (0%)
-----


Total 3 (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 inconsistent
remote: error: with what you pushed, and will require 'git reset --hard' to match
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)
error: failed to push some refs to 'ssh//ip do serwa

Ten post edytował Matrix12 14.09.2015, 20:20:33
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 13.10.2025 - 09:38