Jump to content

executing git commands through exec()


david419

Recommended Posts

I am trying to execute git commands through exec() in php file. The php file is run in my localhost and i am trying to mainly execute these three commands:-

 

cd change_to_git_directory

git add *

git commit -m hfwejfk

git push

 

but these commands are not getting executed as no changes are there in my git repository.

 

So, what to do?

Link to comment
https://forums.phpfreaks.com/topic/283833-executing-git-commands-through-exec/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.