I'm trying to add, commit & push to github using php code from Laravel controller using:
shell_exec('git add . && git commit -m "Nero" && git push origin master');
system('git add . && git commit -m "Nero" && git push origin master');
- The code added files changed successfully.
- The code commit successfully.
- It takes too long time and still didn't push the code.
I tried a lot of commands and it successfully run, the problem is in
git push
git push origin master