Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a GIT repo on GitHub that I work with on both Windows and Linux. Here is what I observe:

(on Linux) git pull
(on Linux) I cannot save files. I change permissions, and make changes.
(on Linux) git push

(on Windows) git pull
(on Windows) I make some changes
(on Windows) git push

(on Linux) git pull
(on Linux) I *still* do not have the rights to change the files.

How can I have GIT always allow me to change the files in my repo on Linux?

share|improve this question
    
This might be related to ntfs not having file permission, so when you push from windows it's not pushing permissions on the files. – Rob Jan 11 '13 at 17:38
up vote 1 down vote accepted

Need more details. After "changing permissions" you have to do the "git add"/"git commit" (or simpler, "git commit -a") dance: git does register the permissions to the files.

share|improve this answer

1) Create the git repo under your home directory in linux

$>mkdir ~/source
$>cd ~/source
$>git init
$>git pull .....

Untested code, but this should point you in the right direction. You should have no perm problems under your home directory.

2) Do a sudo git pull, but I really don't recommend it.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .