Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6112035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:41:57+00:00 2026-05-23T14:41:57+00:00

Commit hooks in git live in the .git/hooks directory. What I would love is

  • 0

Commit hooks in git live in the .git/hooks directory. What I would love is be able to commit those hooks so everyone checking out the repo has the hooks automatically. I’m not able to add the files inside .git/hooks to git however. Is this not at all possible?

I do realise there are server side hooks by the way, this is a theoretical quest 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T14:41:57+00:00Added an answer on May 23, 2026 at 2:41 pm

    No, all you can do is have the hooks in the repo if needed and ask the owner of the repo to copy them to the .git/hooks ( or have another script in the repo that will copy the hooks ( or create symlink to them) , change permission etc. when it is run )

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

kt@rails-ubuntu:~/rails/ledger/releases/20080820144914/.git/hooks$ ls -al ls: cannot access post-commit: No such file or directory ls: cannot
Browsing through the git documentation, I can't see anything analogous to SVN's commit hooks
After hearing about git commit hooks, I was thinking maybe there are such things
I have recently been writing git hooks for my project team. I would like
I have a bare repo server-side, and I am able to successfully commit and
I'd like to have git automatically push local changes to the upstream subversion repo
How do you manage git pre/post commit hooks across various platforms (say, *nix and
I imagine that I should write a git commit hook (post-merge?) that would look
I would like to check the commit message before Git commit. I use a
Problem: apparently the scripts in the .git/hooks directory depend on the filename matching one

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.