gitignore for WordPress project.
Files list to ignore.
- .htaccess and MacOS unvisible files
- log files
- Configs of WordMove and wp-cli
- sitemaps
- backup files
- sql dump files
- wp-config.php
- uploads
On remote, git repository should not be in web public area. When you init, add an option to set another place for repository files.
git init –separate-git-dir ..
or
git init –separate-git-dir ~/git/projectname
WordMove Movefile
gulpfile.js
themes/theme-name/gulpfile.js
- Compile from sass directory to css directory
- Watch changes of all php, sass/*.scss, js/*.js and reload the browser.