Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

169
Views
Trigger git commit using form response

is there a way that I can trigger a git commit when a user submits their js form? I want to include the data submitted in the form in the description of the commit on github. I tried using multiple frameworks, but I didn't succeed.

Stack:

  • Im using bootstrap 5.1 for the ui.
  • Deploying on a static site on render.com
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

if you are using PHP, you can use the exec to execute a command.

Basically, you can write a REST API that will run the exec functions.

For example, let's use Laravel

Route::post('commit', function(Request $request) {
  exec('cd /to/your/folder';
  exec('git add .');
  exec('git commit -m "'.$request->commitMessage.'"');
  exec('git push origin master');
});
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!