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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T14:15:49+00:00 2026-06-10T14:15:49+00:00

I cloned a Git repository from Windows using msysgit (v1.7.7) on a network drive.

  • 0

I cloned a Git repository from Windows using msysgit (v1.7.7) on a network drive.
Some files are marked on the repository to have mode 100755.

Using the git bash tool from Windows, the ls -l command effectively shows the good permissions for those file.
Now when I access the repository directory from Linux, those files have 644 permissions instead of 755.

If I chmod them to 755 on the Linux side and go back to the git bash tool on Windows:

  • the ls -l command still shows the files to have 755 permissions
  • but the git diff command tells the files changed mode from 100755 to 100644

Any idea how to properly handle file mode using msysgit on Windows?

I found this issue on msysgit which corresponds to my problem http://code.google.com/p/msysgit/issues/detail?id=164
I tried the proposed hint git update-index --chmod=+x on my files but it did not change anything.

  • 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-10T14:15:51+00:00Added an answer on June 10, 2026 at 2:15 pm

    mingw doesn’t support file modes as linux does. As I understand it follows windows-extension support, i.e. .exe will have +x bits. But chmod doesn’t do anything.

    So, for git you should specify git config core.filemode false to disable file mode support in mingw. And if you need to change it, you should do it under Linux.

    Howerver, maybe I’m wrong, but afair cygwin does support file modes. You could try it instead of mingw.

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

Sidebar

Related Questions

I have cloned an SVN repository from work using git-svn. During the initial cloning,
I've created a bare git repository (Core), cloned from a pre-existing repo (Production) using
I want to have a bare git repository stored on a (windows) network share.
I have tried to build a latest Qt from the Git repository on Windows
I have successfully cloned Git repository in Jenkins over Git/SSH on Windows 2008 32-bit.
I have a Git repository on my local machine that I cloned from my
I cloned a git repository from GitHub, made some changes and some commits; I
I have a remote git repository and I have cloned one branch git clone
I have cloned a remote SVN repository with git-svn. I have modified a pom.xml
I currently have a git repository at github that stores the packaging files for

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.