-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working for private repository #39
Comments
Getting similar error for private repo === ERROR: Pull failed using GIT |
Ok i got this working. The problem is the folder permission for your GIT folder, it needs to be www-data (or httpd/apache user, the PHP file is run by apache user, so the git folder should be your apache user.) You need to have the public keys generated for www-data user (or apache/httpd user based on your server configuration). Step 1: (ON YOUR SERVER)#let's be root ##go the apache folder ##create folder to store keys ##Start the ssh-agent in the background. ##Copy the generated Pub key to be pasted on github.com #Attempts to ssh to GitHub Step 2:Copy/Add the key displayed above in tail command to your github account or repo, Repo->Settings->Deploy Keys. #type "yes" Step 3: (OPTIONAL, in case you had used HTTPS like me, you need to change it to ssh git)Cd to your git folder for e.g /var/www/my-project folder Change url = https://github.com/username/reponame to url = [email protected]:username/reponame.git |
Hi, I follow the steps above, but still get error as below: === ERROR: Pull failed using GIT Please make sure you have the correct access rights |
Hi
I am trying to use this script for private repository, but its not working, although SSH is set up properly n gitlab but if I try to test
" fatal: could not read Username for 'https://gitlab.com': No such device or address HEAD is now at df699ba Add new file"
The text was updated successfully, but these errors were encountered: