title: How to use Git With Laravel?
body: <p>I'm pretty new to Git. I'm developing using PHP/Laravel on at least two machines; both Windows 10, let's call them office and home. I want to keep a sync environment on both. So I created an account on BitBucket.</p>
  
  <p>I created my Laravel app using Laragon using the directory: <code>d:\laragon\www\project</code></p>
  
  <p>I created a clean remote repo in BitBucket and configured for use on the office PC, inside the project directory:</p>
  
  <pre><code>git init
  git remote add origin https://...
  git add .
  git commit master
  git push -u origin master
  </code></pre>
  
  <p>It copies some of the files to the remote repository. I understand this is because of the .gitignore file, and that's okay.</p>
  
  <p>Now the thing is if I go to my home PC and do a:</p>
  
  <pre><code>git clone http://...
  </code></pre>
  
  <p>It will only get the non-ignored files. My question is, how do I have to configure the second development environment? </p>
  
  <p>I tried to create a new app at the home's <code>c:\laragon\www\project</code> and then try to clone in this directory, but of course it says the directory is not empty, so does nothing.</p>
  
  <p>Do I have to delete the .gitignore file the first time, so it syncs everything?</p>