Skip to content

Instantly share code, notes, and snippets.

@mishterk
Last active July 14, 2023 03:12
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
How to remove Git tracking for third party plugins in WordPress. Snippets for the post https://philkurth.com.au/articles/remove-git-tracking-third-party-wordpress-plugins/(opens in a new tab)
git commit -m "Stopped tracking third party plugins"
# Ignore all plugins
/plugins/*
# Allow tracking of plugins with our custom prefix
!/plugins/hookturn*
git rm -r --cached plugins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment