How to return the rights to the files?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
23 views
The essence of what I am on the LAN I changed the rights on the folder after which it threw in the repository, which was made a merge request at all. That is, I explain to that I can't get the branch. Now I found the solution
find . | xargs git update-index --chmod=-x
but there is a problem the path to the file must be transferred after the update-index --chmod=-x
can you tell me is there any solution how to do it
by | 23 views

2 Answers

0 like 0 dislike
find . -name "*" -print0 -exec git update-index --chmod +x '{}' \\;
by
0 like 0 dislike
Why not just
chmod-R a+x *
git commit-a "permissions"

?
Well try
find . | xargs -n 1 git update-index --chmod=-x
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
0 like 0 dislike
3 answers
110,608 questions
257,187 answers
0 comments
40,796 users