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

  • SEARCH
  • Home
  • 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 9024007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:54:05+00:00 2026-06-16T05:54:05+00:00

I realize there are very good reasons I should not be doing this. However,

  • 0

I realize there are very good reasons I should not be doing this. However, given that I’m stupid, what is the best way to do the following.

I am using a directory in my git repo basically as a key value store. Where the filename is the key, and the value is the contents of the file.

I want, on every git commit, for files in this directory to be automatically added into the repo.

How should I solve this?

Thanks!

  • 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-06-16T05:54:07+00:00Added an answer on June 16, 2026 at 5:54 am

    So basically you want to git add the directory everytime you do a commit? You can use git hooks for that, take a look at Customizing Git – Git Hooks, pre-commit hook more specifically.

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

Sidebar

Related Questions

I realize that this might be a duplicate question but this question is very
I realize there is a very interesting technique, to get Context in Android in
I realize there are similar questions on this topic, but I still cannot find
I realize there are similar posts to this out there, but rest assured, this
I realize there are is no TRIGGER ON SELECT in Postgres. Given a table
I want to store short arrays in a field. (I realize there are reasons
I realize that there are many similar questions, but most involve scaling down the
Firstly, I realise that this is a very similar question to this one: Which
After some stupid musings about Klingon languages, that came from this post I began
I realize there are various kinds of software projects: commercial (for John Doe) industrial

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.