Why is tortoise-git changing my file permissions?

6,134

Solution 1

$ git config core.filemode false

Read the documentation on git config.

add --global to set it over all of your git projects.

Solution 2

It appears that TortoiseGit and Git Gui don't handle the x bit on Windows as well as cygwin does. Most people probably don't care about changing the x bit, so "core.filemode false" is a good solution to keep both cygwin and your GUI happy.

Share:
6,134

Related videos on Youtube

erikvold
Author by

erikvold

Updated on September 17, 2022

Comments

  • erikvold
    erikvold over 1 year

    I switch between using tortoise git and cmd line git on cygwin very frequently, and lately I've noticed that when I git status via cygwin and no changes are found, then I go to use tortoise git, and right click on a repo then use the "Git Commit -> ..." menu item, I get a list of files that have supposedly changed, but of course when review the diff there are no changes to the file contents, it's actually the file permissions which appear to be changed, which git via cygwin does not recognize.

    So what is wrong with my tortoise git setup?