I have an issue with git pull. Once I do it for some reason i always need to restore the permissions to the folder. This is not an aaPanel issue, but I am trying to find out what the command aaPanel fires when this button is pressed. I tried these commands but they are not he same thing.
sudo find . -type f -exec chmod 644 {} + -o -type d -exec chmod 755 {} +
sudo sudo chown -R .
sudo chmod -R 777 ./storage
sudo chmod -R 777 ./bootstrap/cache/
