Cannot Git push on remote server via ssh -
hi i'm new git , i'm having problems pushing commits on remote server. setup
remote serveri have bare repository on /var/www/html/bare git init --bare --shared
in pci setup:
git remote add together origin ssh://username@hostname:22/var/www/html/bare
whenever make:
git force origin master
i got permissions error , can't force remote server
i tried:
chmod -r 755 . on remote bare repo doesn't work. on net , still got problem.
did missed something?
error
remote : error : insufficient permission adding object repository database objectsw fatal: sha1 file '<stdout>' write error : invalid argument error: failed force refs 'ssh://user@hostname:22/var/www/html/bare'
thanks!
ssh user@host "git init --bare /mnt/infy/bar/my-project.git"
also please refer link,
http://git-scm.com/book/en/v2/git-basics-working-with-remotes
git ssh remote-server
No comments:
Post a Comment