title: How to version Drupal with Git?
body: <p>I'm new to Drupal, it's quite obscure to me and there are a few points I'd like you to help me with.</p>
  
  <p>I've read somewhere that "sites/default/files" should be a part of .gitignore.
  When I installed Drupal the only differences in the project were the new folder "sites/default/files" containing among others a "config_xxx" folder, and the settings.php, in "sites", setting the DB parameters and the config directories mentionned above.</p>
  
  <p>When I manually remove the "default/files" folder and go on drupal, it's been created again, but only with php files. So no css, for instance. I suppose it's what will happen if I don't commit this folder.</p>
  
  <p>I tried to commit it anyway, to clone it and to run the cloned project (same db, same everything). It did not work, it seemed to have no css either, while this time, the "sites/default/files" exists and (theoretically) contains the same things than the initial project.</p>
  
  <p>Well, actually it has now several new files in the "php/twig" folder, files with another prefixe than files that have been commited from the initial project. So I guess that guy was right, one's not supposed to commit this folder.</p>
  
  <p>So, how ? Can you guys, tell me what's the standard way of sharing a drupal project with git ? Let's say I simply want to run drupal website, exactly as it is just after the installation, but on another computer (but same db, of course). How should I do ?</p>