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

  • Home
  • SEARCH
  • 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 4098812
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T20:21:05+00:00 2026-05-20T20:21:05+00:00

There are 2 machines, A and B. And there are 2 branches, p16 and

  • 0

There are 2 machines, A and B. And there are 2 branches, p16 and c2.

A has an ext3 filesystem, but on B the archive lives on a truecrypt drive with vfat, mount shows rw,uid=1000,gid=1000,umask=077

A has linked the directory tree of B into its directory tree using sshfs and then A pushed into B’s p16 using the filesystem.

Now there are some permission problems:

B$ git status
# On branch p16
nothing to commit (working directory clean)
B$ git checkout c2
Switched to branch 'c2'
B$ git checkout p16
error: You have local changes to 'help.txt'; cannot switch branches.

git diff shows me a changed mode for all files now:

B$git diff
diff --git a/help.txtt b/help.txt
old mode 100644
new mode 100755
diff --git a/169.txt b/169.txt
old mode 100644
new mode 100755
... 
(a list with all files having their mode changed follows)
...

I guess the problem is that the local filesystem is a vfat truecrypt container and the filesystem does not allow the permissions that the other machine expects.

Any ideas how I can better link the 2 machines with different filesystems?

  • 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-20T20:21:06+00:00Added an answer on May 20, 2026 at 8:21 pm

    Such problems using git can occur, if the file permissions of the operating system are not functioning as they should in that location. For example, when foreign filesystems are mounted.

    The solution was pointed out by meagar in his comment on the question above:

    Just make sure you have (within the [core] section) a line

    filemode=false
    

    in .git/config which will tell git to ignore the executable bit for files it’s tracking.

    Another way of doing the same thing would be to go to the root directory of the git repo in the terminal and type:

    git config core.filemode false
    

    Note that changing this setting is occasionally necessary, but otherwise it is better to keep the default behaviour. It’s important in many cases for git to track file permissions correctly, so your project can work as it should.

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

Sidebar

Related Questions

Is there a compendium of virtual machines and languages derived or inspired by Lua?
Are there any known issues with ASP.Net Ajax and IE6 in Windows 2000 machines
On my other machines, Visual Studio always broke on errors when there was not
I'm trying to write a git deployment script, but the script has to update
What application virtual machines are out there that are written in higher level languages?
There are 2 machines, one with Xp one with Win 2003. Both are Japanese
Is there any virtual machine to test Android? How can I debug the program
I have three different development machines. Do I need three different iPhone Developer Program
I have to deploy a C# application on a 64 bit machine though there
Is there a way to get a unique machine-specific system ID in a Flex

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.