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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T07:41:14+00:00 2026-06-02T07:41:14+00:00

I want a file in my repository to be automatically updated (with any value,

  • 0

I want a file in my repository to be automatically updated (with any value, I just want its timestamp to be changed) with every git commit. How can I do this?

My reason is to force my Glassfish appserver to reload my webapp when I build it on the server. I need to touch a file called .reload for this to happen. Rather than doing so manually, I want git pull origin; mvn build on my server to also touch the .reload file.

  • 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-02T07:41:19+00:00Added an answer on June 2, 2026 at 7:41 am

    git-hooks, thanks to the commenters on my question above, seems to be the way to go. maven cargo, thanks to the other answer, is a good way too; in fact, perhaps better for deployment, but if you want to do something more general git-hooks is better.

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

Sidebar

Related Questions

Is there a single command that automatically regenerates a git repository? I want to
After cloning a git repository, How can I get the repository file? for example)
I want to rename my file in my repository locally. So I do: git
I just want a single file, called revision, which contains the repository revision number
I want to list every contributors for each file in the repository. Here is
I have a tracked database (already added) file in git. I want this file
I want to search a repository file to see if I have a file
We're accessing a shared git repository via file paths, for various reasons I'll omit
If I have an empty repository git init and I want to pull in
I have a GIT repository on bitbucket, which I want my Jenkins Server to

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.