Permissions for git project when using on remote server -
these commands i've ran on server:
$ whoami git $ ls -l drwxr-xr-x 3 git git 4096 jan 16 05:48 git $ ls -l git/ total 4 drwxrwxr-x 7 git git 4096 jan 16 05:55 tpro.git
then on local machine:
$ git remote add origin git@gitserver:/opt/git/t.git
then when want push server local machine have following error:
$ git push -u origin master fatal: '/opt/git/t.git' not appear git repository fatal: not read remote repository. please make sure have correct access rights , repository exists.
you mention tpro.git
trying access t.git
.
make sure path exists.
, make sure tpro.git
indeed in /opt/git
(not /home/git
)
then try:
git remote set-url origin git@gitserver:/opt/git/tpro.git, git push -u origin master
that ensure master
pushing origin/master
every time, simple git push
.
Comments
Post a Comment