title: How to fix "warning: could not open directory" after "git add ." command on Mac OS X Maverick
body: <p>I'm new to R and RStudio and am currently taking online classes to learn more about data science. In one of my lectures, I'm being asked to create a project in RStudio prior to creating a repository in github and linking the project with git. In order to make a pre-existing project interact with git, the instructions in my lecture are telling me to navigate to the directory containing my project file by using the "cd" command followed by the location of the file and file name. My project file is currently located on my desktop so I typed in "cd ~ /Desktop/temporary_no_version_control" however, the directory doesn't seem to change and remains set on the original location of the file which was in Users/savannahkeiffer. Just so I could complete the assignment, I re-located the file to my user file and tried to follow the rest of the instructions which told me to type "git init" followed by "git add ." which is where I run into the "warning: could not open directory" warning. </p>
  
  <p>I have a macbook which runs on OS X Maverick. I went into my system preferences > security and privacy and selected Full Disk Access where I manually allowed terminal to have access to all the files on my laptop. However, after closing and re-opening RStudio and attempting the commands again, I got the same error. </p>
  
  <p>This is what I entered when I tried to change the directory </p>
  
  <pre><code>Savannahs-MacBook-Air-2:~ savannahkeiffer$ cd ~ 
  /Desktop/temporary_no_version_control
  
  Savannahs-MacBook-Air-2:~ savannahkeiffer$ git init
  Reinitialized existing Git repository in 
  /Users/savannahkeiffer/.git/
  </code></pre>
  
  <p>And what I got when I changed the location of the project on my laptop in order to complete the assignment (after already giving access to terminal)</p>
  
  <pre><code>Savannahs-MacBook-Air-2:~ savannahkeiffer$ cd ~ 
  /Users/savannahkeiffer/first project/temporary_no_version_control
  
  Savannahs-MacBook-Air-2:~ savannahkeiffer$ git init
  Reinitialized existing Git repository in 
  /Users/savannahkeiffer/.git/
  
  Savannahs-MacBook-Air-2:~ savannahkeiffer$ git add .
  
  warning: could not open directory 'Pictures/Photos 
  Library.photoslibrary/': Operation not permitted
  
  warning: could not open directory 'Library/Application 
  Support/MobileSync/': Operation not permitted
  
  warning: could not open directory 'Library/Application 
  Support/CallHistoryTransactions/': Operation not permitted
  
  warning: could not open directory 'Library/Application 
  Support/com.apple.TCC/': Operation not permitted
  
  warning: could not open directory 'Library/Application 
  Support/AddressBook/': Operation not permitted
  </code></pre>
  
  <p>And so on.. Is this a directory problem or a "git add ." command problem?</p>