Quantcast
Channel: 'commit' changes on webserver to Github repo using PHP not working - Stack Overflow
Browsing latest articles
Browse All 5 View Live

Answer by Gasol for 'commit' changes on webserver to Github repo using PHP...

You says:But when I try to do this using a PHP script it never works and I get no error message (I even try with pauses): $output = `git add --all`;echo $output;sleep(1);$output = `git commit -m "from...

View Article


Answer by delboy1978uk for 'commit' changes on webserver to Github repo using...

You are literally just echoing strings, not running them.Instead of echo(), you can use exec(),...

View Article


Answer by bedoui for 'commit' changes on webserver to Github repo using PHP...

The problem is with the authentication. The first solution is to do like Robert said. But I think that no need to Reinvent the wheel, try to see this package :https://github.com/kbjr/Git.phpEverything...

View Article

Answer by Robert for 'commit' changes on webserver to Github repo using PHP...

When you run a script with php it is run by a user www-data(by default). When you connect to git repository you need to do auth. Most likely it will be done using ssh key. So you need authorize user...

View Article

'commit' changes on webserver to Github repo using PHP not working

I'm trying to write a little PHP script that can spot all the changes to a local git repo on my web server and push them up to my (private) Github repo. Pushing and pulling from the Github repo using...

View Article

Browsing latest articles
Browse All 5 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>