GIT file permission

1

All my systems I have are giving permission problem after I give a git pull , so for example I have a folder where my js and css files are generated. Folder assets / min /, after I pull a pull I always need to run chmod -R 777 assets/min so I can change those min files, it generates them again in case, what would be the solution in this case so I do not have to give permission every time What does a pull do?

Note: My operating system is MacOS High Sierra

    
asked by anonymous 29.01.2018 / 20:10

1 answer

1

I had this problem a while back. I have decided as follows:

  • Open the folder of your local repository with the Finder. Click the folder and press ⌘I. This should open the folder information. If a padlock appears in the window, click and type the password of your Mac to give write permissions.
  • At the end of this window, search for "Sharing & Permissions". There is a permissions table and users. In your user, where it says "(Me)", select "Read and Write".
  • Click on the configuration icon (gear) and select "Apply to enclosed items".
  • This will put write and read permissions for all folders, subfolders, and files in your user to the folder of your local repository. If you're having difficulty, use this print as a reference.

    If you happen to share this folder with someone on the network, it's a bit more boring to solve. Then you can try adding the following to your .gitconfig :

    [core]
      repositoryformatversion = 0
      filemode = true
      bare = false
      logallrefupdates = true
      sharedRepository = group
    

    You have a more detailed blog about here .

        
    27.11.2018 / 23:24