Synchronized Local and Remote Sites

  1. Install your site on your local Wamp, Xamp, Mamp or whatever webserver you are using.
  2. Move all files inside your drupal directory to the server. You can do this with Version control (Git, SVN etc) or by using FTP
  3. Do not copy the file "settings.php" inside sites/default
  4. Create a fresh database on your remote server and do a fresh install of Drupal.
  5. Export the configuration via /admin/config/development/configuration/full/export
  6. Import the config.tar.gz file you get from that via /admin/config/development/configuration/full/import
  7. Export the database from your local web server using PHPmyadmin or another tool. The preferred Drupal module for that is https://drupal.org/project/backup_migrate once it will be ready for Drupal 8.
  8. Import the database using the same tool into the Drupal 8 site on your remote server

Original source: https://www.drupal.org/docs/8/configuration-management/keeping-your-loca...