01.09.2025

GIT .gitignore Datei für Weblication BASE Projekte


GIT taugt sehr gut als Versionsverwaltung für Weblication Projekte.

Weblication schreibt im laufenden Redakteursbetrieb jede Menge temporärer Dateien, die man nicht im GIT Repository haben möchte. Falls man GIT zum Synchronisieren von Entwicklungs- und Liveumgebung einsetzt, müssen auch Inhaltsdateien aus dem GIT Repo ausgeschlossen werden.

Optimierte .gitignore

Folgende .gitignore Datei dient als Muster für neue Weblication BASE Projekte und kann je nach Projekt angepasst werden.

[.gitignore]

# Exclude all
/*

# Include templates/ layout/ scripts
!/base-wGlobal

# Include content directories (if needed)
#!/base

############ CONTENT ###########
# Schliesst projektspezifische Inhalte aus #

# Exclude weblication project settings
**/weblication/project/**

# Exclude templates
**/weblication/templates/**

# Exclude content elements (navigation, categories, textfiles, portalcontent)
**/wGlobal/content/*

# Include global content by type
#!**/wGlobal/content/**/navigations
#!**/wGlobal/content/**/texts
#!**/wGlobal/content/**/contentPortal
#!**/wGlobal/content/**/redirects

# Exclude newsletters
**/newsletter/newsletters/*
**/newsletter/receivers/*
**/newsletter/webarchiv/*

# Exclude directory meta file
**/wDirectory.php

# Exclude directory meta file
**/weblication/languages/*

############ GLOBALS ###########
# Schliesst globale und automatisch generierte Inhalte aus #

# Exclude weblication meta files
**/weblication/documents/*
**/weblication/directories/*
**/weblication/directory/*
**/weblication/wThumbnails/**
**/weblication/tdp/**

# Exclude weblication directory index
**/weblication/index/*

# Exclude weblication project cache
**/weblication/cache/*

# Exclude optimized files
**/scripts/optimized/*
**/styles/optimized/*
**/items/optimized/*

# Exclude logfiles
**/wGlobal/logs/**

# Exclude weblication trash
**/weblication/trash/**

############ DIRECTORY EVENTS ###########
# Falls Verzeichnisereignisse ins Repository aufgenommen werden sollen #

# Include directory events
#!**/**/events
#**/**/events/weblication/

############ WORKFLOWS ###########
# Falls Workflow Konfigurationsdateien ins Repository aufgenommen werden sollen #

# Include workflow config files
**/**/scripts/workflows/*

############ OPTIONAL ###########
# Schliesst die meisten nicht gewuenschten Dateien aus  #

# Exclude wWeblic.php files
**/weblication/weblics/*

# Exclude editor configuration files
**/layout/editor/*
**/layout/fileselector/*

# Exclude layout images
**/layout/images/*

# Exclude vendor javascripts/ weblic javascripts
**/layout/scripts/items/*

# Exclude vendor styles/ weblic styles
**/layout/styles/items/*
**/layout/styles/import/*

# Exclude webfonts
**/layout/webfonts/*

############ SPECIAL FILES ###########

# Exclude .htaccess except in content directory
**/**/.htaccess

# Exclude .gitignore
.gitignore

Sicher auch interessant