Skip to content

Compare: Git Repo Maintenance

Showing with 1 addition and 1 deletion.
  1. +1 −1 Git-Repo-Maintenance.md
View
2 Git-Repo-Maintenance.md
@@ -13,7 +13,7 @@ This is the maintenance that we do on our Zuha Sites submodule to maintain the g
1. `git branch -d <BRANCH NAME>` ex. `git branch -d dev` Delete all local branches except master.
1. Filter the media file paths
- > git filter-branch --index-filter 'git rm --cached --ignore-unmatch **/View/Themed/Default/webroot/media/* **/views/theme/default/webroot/img/* **/views/theme/default/webroot/upload/* **/views/themed/default/webroot/files/* **/View/Themed/Default/webroot/images/* **/View/Themed/Default/webroot/upload/* zuha.com.rar **/View/Themed/Default/webroot/img/* **/views/themed/default/webroot/images/* **/views/themed/default/webroot/upload/* **/views/themed/default/webroot/img/* **/View/Themed/Default/webroot/media/* **/views/theme/default/webroot/img/* **/View/Themed/Default/webroot/imgs/* **/views/theme/default/webroot/imgs/* **/views/theme/default/webroot/files/* **/View/Themed/Default/webroot/osm/* **/views/theme/default/webroot/imgs/* **/View/Themed/Default/webroot/osm/* **/views/themed/default/webroot/js/* **/tmp/logs/debug.log **/tmp/logs/error.log **/tmp/cache/models/cake* **/tmp/cache/test* **/tmp/cache/persistent/cake* **/tmp/cache/views/cake* **/tmp/cache/views/element* **/tmp/cache/cake* **/tmp/cache/*storage* **/*.sql' --prune-empty -- --all
+ > git filter-branch --index-filter 'git rm --cached --ignore-unmatch **/View/Themed/Default/webroot/media/* **/views/theme/default/webroot/img/* **/views/themed/default/webroot/imgs/* **/View/Themed/Default/webroot/js/* **/views/themed/default/webroot/osm/* views/* **/tmp/cache/rss/* **/views/theme/default/webroot/upload/* **/views/themed/default/webroot/files/* **/View/Themed/Default/webroot/images/* **/View/Themed/Default/webroot/upload/* zuha.com.rar **/View/Themed/Default/webroot/img/* **/views/themed/default/webroot/images/* **/views/themed/default/webroot/upload/* **/views/themed/default/webroot/img/* **/View/Themed/Default/webroot/media/* **/views/theme/default/webroot/img/* **/View/Themed/Default/webroot/imgs/* **/views/theme/default/webroot/imgs/* **/views/theme/default/webroot/files/* **/View/Themed/Default/webroot/osm/* **/views/theme/default/webroot/imgs/* **/View/Themed/Default/webroot/osm/* **/views/themed/default/webroot/js/* **/tmp/logs/debug.log **/tmp/logs/error.log **/tmp/cache/models/cake* **/tmp/cache/test* **/tmp/cache/persistent/cake* **/tmp/cache/views/cake* **/tmp/cache/views/element* **/tmp/cache/cake* **/tmp/cache/*storage* **/*.sql' --prune-empty -- --all
1. `rm -rf .git/refs/original/` Remove git's backup.
1. `git reflog expire --expire=now --all` Expires all the loose objects.
Something went wrong with that request. Please try again.