I am a beginner at OSX/Unix command line.
I have a GIT repository that was created on my OSX computer. Recently I cloned the repo and went to run a bash script within the repo via ./BashFile.sh. This is giving me a permission denied error. So i ran chmod 777 ./BashFile.sh. The next time I ran ./BashFile.sh it worked, except the bash file calls other files within it that then had "Permission Denied" errors. I then logged into a terminal session as super user via sudo -s and ran the ./BashFile.sh command, but I am still getting permission denied errors.
How should I fix this, do I need to recursively chmod 777 the entire repo directory? Why does using Sudo not let me have permission?
One thing to note, is that when I originally created the repo on my computer, I could run all the commands without a problem. Since cloning the repo I have been having permission denied errors.