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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:54:57+00:00 2026-06-11T23:54:57+00:00

we are a group of developers working on the same set of files. I

  • 0

we are a group of developers working on the same set of files. I want to make sure that no one does a git commit -a -m or git commit -am

The developers including me have this bad habbit of git commit -am/ -a -m and we have a lot of conf files specific to the machine that get committed everytime. I could ask us all to use –assume-unchanged but I want to make the developers not be able to use -a flag at all

Can I hack somehow to achieve 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-11T23:54:58+00:00Added an answer on June 11, 2026 at 11:54 pm

    I would recommend you to solve this problem differently:

    1. use a .gitignore file to specifically exclude files which must not be committed or
    2. use a pre-commit hook to automatically reject commits which look like they were made with -a.

    When you insist on disabling the -a flag: well, git is open source. Finding and disabling the code which reads the -a command line parameter and recompiling shouldn’t be that hard. But that would mean you would have to do it again whenever a new version of git is released, so I would really advise against that.

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

Sidebar

Related Questions

A group of developers that I am working with switched from VSS to SVN
I'm working with good group of very sharp developers on one of my client's
I support a group of developers that are telling me to setup a registry
This question is geared towards a group of newly hired developers that need to
If a group of developers are working on a project written using ASP.net and
this time i have a kind of theoretical question. one of sw developers working
I remember working on a project with a group of developers and they always
After working the whole day with Google Code our group of developers was able
My group is working on a Flex/AS3 scientific web application that is data intensive.
G'day, I am working with a group of offshore developers who have been using

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.