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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:45:30+00:00 2026-05-27T16:45:30+00:00

If you see the accepted answer in: Aggregating and uglifying JavaScript in a Git

  • 0

If you see the accepted answer in:
Aggregating and uglifying JavaScript in a Git pre-commit hook, you’ll see that I had to do a chmod +x on my pre-commit hook to get it to work.

Why is this not executable by Git by default?

  • 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-27T16:45:30+00:00Added an answer on May 27, 2026 at 4:45 pm

    Because files are not executable by default; they must be set to be executable.

    The sample files from a git init are all executable; if it’s copied or renamed to a non-sample file, it will retain the original file’s x flag.

    New files will be created with current defaults. In your case, view those defaults with umask:

    $ umask
    0022
    

    By default, new files won’t be u+x unless explicitly set to be.

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

Sidebar

Related Questions

I've built an activity that uses this implementation (see the accepted answer) to post
See that post and the accepted answer : In XCode, is there a way
Edit: Worked out the problem - see accepted answer for a good explanation! My
Bug reported as fixed by Apple, see accepted answer below ... UPDATE MON AUG
(see here for the problem I'm trying to solve) How do you get hibernate
I've found a similar question, but the accepted answer is not what I want:
I want to post a comment to this question's accepted answer, Haven't views abandoned
This question has been asked before but 1) the user never accepted an answer
Following from Way/coding method to do activitylist/log I worked with the accepted answer on
I decided to give MongoDB a try and see how well we get along.

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.