I need to run git commands from perl script. For this i need to use complete path of the git. the syntax looks like this
system "start", "cmd.exe", "/k", "cd $Repo_path && $arg1 && exit";
Where $arg1 = git/exe/path git command.
Some time the execution of command may get failed due to some reasons. I need to capture the status of the result of the command executed. Atleast if I am able to capture Success or failure, that would also be great. Any help to this is appreciated. Thanks in advance.