Implement automation between Git and GitHub

0 votes

Hi Guys,

I want to implement automation between Git and GitHub. I searched and found Git hooks help to implement this task.

Can anyone tell me, how hooks work?

May 4, 2020 in Git & GitHub by akhtar
• 38,210 points

1 answer to this question.

0 votes


Every Git repository has a .git/hooks folder with a script for each hook you can bind to. You're free to change or update these scripts as necessary, and Git will execute them when those events occur.

Here's a full list of hooks you can attach scripts to.

  • pre-commit
  • post-commit
  • pre-rebase
  • post-merge
  • update
  • post-receive
  • post-update
  • post-rewrite
  • pre-push

Hope this will give you some idea.

answered May 4, 2020 by MD
• 95,300 points

Related Questions In Git & GitHub

–1 vote
1 answer

Having problem in Github and remote Git repo with production and development code

I think you could start with this. The ...READ MORE

answered Apr 10, 2018 in Git & GitHub by shubham
• 7,320 points
0 votes
1 answer

Configure Git and GitHub

In version control with Git, we deal ...READ MORE

answered Apr 26, 2018 in Git & GitHub by DragonLord999
• 8,450 points
0 votes
3 answers

difference between git remote and git clone

HI.... GIT REMOTE add just creates an entry in ...READ MORE

answered Jul 11, 2020 in Git & GitHub by anonymous
+1 vote
1 answer

difference between git fetch and git pull

Both fetch and pull are used to ...READ MORE

answered Jun 27, 2018 in Git & GitHub by anonymous
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
+2 votes
1 answer
0 votes
1 answer

Difference between git add -A and git add . command.

Hi@akhtar, The difference lies in which files get ...READ MORE

answered Dec 22, 2020 in Git & GitHub by MD
• 95,300 points
0 votes
1 answer

How merge works in Git & GitHub!!!??

Hi@Hasid, In Git & GitHub merge concept comes ...READ MORE

answered Jan 31, 2020 in Git & GitHub by MD
• 95,300 points