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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T14:07:24+00:00 2026-05-21T14:07:24+00:00

I have been manually committing my git repository everyday. But then sometimes I forget.

  • 0

I have been manually committing my git repository everyday. But then sometimes I forget.

Is it possible to write a shell script to do a git commit ?

I am finding it difficult because I dont know how to provide the commit message through script.

NOTE

I am thankful to all the developers who have pointed out to me that this is not the way a version control system is supposed to be used. I agree. If I do a daily commit many of the versions will remain in broken state.

My case is different. I am not really interested in maintaining versions that wont break. I am more interested in keeping backup of my code. I work in a weird way on a remote machine through winSCP.
I want something that will save every minor change I make so that just in case I do ‘rm -rf’ in some directory I wont lose most of my work.

  • 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-21T14:07:24+00:00Added an answer on May 21, 2026 at 2:07 pm

    This does not seem like a very good idea, but, if you still want to do it, something like this would suffice:

    COMMIT = cat ~/commit_message
    git commit -m $COMMIT
    

    And, you can change ~/commit_message to whatever you like everyday.

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

Sidebar

Related Questions

I've got a pair of git-svn branches which have been manually kept in sync
I have been looking for a way to allow users to manually override geolocation
Have been looking on some tutorials for drawing canvas using SurfaceView, but the only
Have been searching how to convert a dictionary to a string. But the results
We have several web services that we have been deploying manually using msdeploy .
We have been manually been keying Amazon orders into our system and would like
I'm writing an import from CSV and have been able to successfully manually set
I am trying to tidy up an application, and have manually been doing Constructor
I have a an excel file that has been manually populated, and now needs
I'm fairly new to Delphi and have been doing all my memory management manually,

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.