By cnd
I’m following this DO tutorial ‘Set Up Automatic Deployment with Git’. When trying to push to the Remote repo locally with the command:
git push live master
I receive:
Counting objects: 1195, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (1064/1064), done.
error: failed to push some refs to 'ssh://USER@IP/var/repo/WEBSITE
t.git'
I think it may be a problem with permissions as I had to use sudo in a couple of the steps or it is maybe a novice’s mistake. Any guidance to troubleshoot or a point in the right direction this would be greatly
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Copying this here from a stackoverflow answer…
"The user that’s pushing to the /var/repo/awesome_repo.git doesn’t has any permissions in that path and is an step not covered during the tutorial.
To solve this what I did was:
sudo chown -R git_user:git_user /var/repo/awesome_repo.git/
Replace the git_user with the username you use to push via ssh."
This worked for me ^ https://stackoverflow.com/questions/44446745/error-of-failed-to-push-some-refs-pushing-to-remote-repo-on-digital-ocean
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.