Git ignore

Create .gitignore file and add following code as well as keep config file in GITIGNORE folder

# Hidden files
.*
._*
!.htaccess
!.gitignore

# Packages
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip

# Adobe files to ignore
*.psd
*.ai

# Logs
*.log

# Compiled source
*.dll
*.exe
*.o
*.so

# OS generated files
*.lock
*.DS_Store
*.swp
*.out
ehthumbs.db
Thumbs.db

#Wordpress file
wp-config.php
wp-content/cache/*
wp-content/cache/supercache/*
wp-content/uploads/wpcf7_captcha/*.png
wp-content/uploads/wpcf7_captcha/*.txt
SOURCE/*
.idea/*

================
worpdress
#Wordpress file
wp-config.php
wp-content/cache/*
wp-content/cache/supercache/*
wp-content/uploads/wpcf7_captcha/*.png
wp-content/uploads/wpcf7_captcha/*.txt
SOURCE/*