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 8325981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T00:37:13+00:00 2026-06-09T00:37:13+00:00

I have a git repo that has a docs directory where I keep markdown

  • 0

I have a git repo that has a docs directory where I keep markdown files that document things I’m working on (for example, I have one called setup_git_server.mdown). I push and pull the repository (and others) from my own webserver running gitolite.

What I want to happen is that whenever I push a commit to the server, it automatically converts the markdown files to HTML and copies them to a directory on the server where Apache can server them.

What’s the best way to do this?

  • 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-09T00:37:15+00:00Added an answer on June 9, 2026 at 12:37 am

    You will want to setup a git hook on the server your repository is hosted. A hook will only run on the machine where it is installed. The hooks themselves are not part of the checked in code base. For example, any post commit hooks you have on your local machine will not be pushed or executed on the server. Other people who check our your code base will not get your hooks.

    If you want the server to take an action when it receives a push, you should create a post-receive hook. The hook can be any executable. In your case, you may want to clone your repo to a temp directory, extract the markdown file, and publish it to your web server.

    I’m not sure if it’s the same for gitolite, but in gitosis, the hooks directory is in the top level of each hosted repository. Place your post-receive hook in that directory.

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

Sidebar

Related Questions

I have a git repo that has a directory full of user uploaded files.
I have a fresh git-svn repo (11.13 GB) that has over a 100,000 objects
I have an existing git repo (a bare one) which has up to this
I have cloned a git repo which has my emacs config files in. I
I have a remote git server that has been working great for months. Earlier
I have a Git repo that has been acting funny. I can checkout all
I have a repo that has two files that supposedly I changed locally. So
I have a git repo that has about 3 or 4 months worth of
I have a git repo with a bunch of source code, and when that
I have a project that's using git. When I received the repo, it had

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.