Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git status not showing permission changes [duplicate]

Tags:

git

github

In a git repository I changed file permissions. If I run the command

git status

or

git status -v

I do not see any changes. It only shows

On branch xxxxx
nothing to commit, working directory clean

But I did change permissions on files and folders from 644 to 777. How can I tell git to show me permission changes?

( git version 2.2.1 and filemode = true)
like image 225
caramba Avatar asked Oct 31 '22 21:10

caramba


1 Answers

You can enable filemode and Git will also track file permission changes.

git config core.filemode true
like image 117
tombeynon Avatar answered Nov 15 '22 04:11

tombeynon