Skip to main content
Topic: .gitignore to import live WordPress, phpBB, and MediaWiki (Read 1218 times) previous topic - next topic

.gitignore to import live WordPress, phpBB, and MediaWiki

.gitignore file we used to import our live WordPress install into a new GIT repository. Partly based on this.
Code: [Select]
# Exclude these files from the git repo
wp-content/backup/*
wp-content/cache/*
wp-content/upgrade/*
wp-content/uploads/*
wp-content/media/*
sitemap.*

#this old unused plugin had a .git file directory and had to be ignored
wp-content/plugins/baap-mobile-version/plugins/wpmp_transcoder/*
wp-content/plugins/hammy/*

#other software in root
docs/*
forum/*
track/*
hackercampshenzhen/*

# Hidden system files
*.DS_Store
*[Tt]humbs.db
*.Trashes

# Include these files in previously blocked directories
!wp-content/uploads/.htaccess

.gitignore file we used to import our live phpBB install into a new GIT repository

Code: [Select]
files/*
cache/*
images/avatars/upload/*
# Include these files in previously blocked directories
!files/.htaccess
!cache/.htaccess

# Hidden system files
*.DS_Store
*[Tt]humbs.db
*.Trashes

.gitignore file we used to import our live MediaWiki install into a new GIT repository

Code: [Select]
cache/*
images/*
!cache/.htaccess
!images/.htaccess

# Hidden system files
*.DS_Store
*[Tt]humbs.db
*.Trashes
Got a question? Please ask in the forum for the fastest answers.