linux - Commit file property changes to git repository -
i have bunch of file incorrect permissions: since files may contain passwords don't want them world-readable after checkout user not have remember changing acces rights.
-rw----rw-. 1 beginner beginner 16 19. sep 04:36 file1.config -rw----rw-. 1 beginner beginner 16 19. sep 04:36 file2.config -rw----rw-. 1 beginner beginner 16 19. sep 04:36 file3.config
but after using chmod get
-rw-------. 1 beginner beginner 16 21. sep 04:36 file1.config -rw-------. 1 beginner beginner 16 21. sep 04:36 file2.config -rw-------. 1 beginner beginner 16 21. sep 04:36 file3.config
git status not show these files changed.
question: how can commit property changes these files git repository?
probably filemode
not on, thats why git
doesn't show changes.
look project, in .git folder config file , should see this:
[core] filemode = false
set true
or run following command
git config core.filemode true
you can find more examples git configuration here
Comments
Post a Comment