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,260 points
989 views

1 answer to this question.

0 votes

Hi@akhtar,

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,460 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,340 points

edited Dec 15, 2023 by Khan Sarfaraz 1,166 views
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
833 views
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
23,561 views
+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
6,335 views
+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
4,060 views
+2 votes
1 answer
+1 vote
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,460 points
7,671 views
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,460 points
848 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP