Skip to content

Instantly share code, notes, and snippets.

@mishterk
Last active July 14, 2023 03:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mishterk/6ccd78d18fc2a3a4dc0f1dd59c2afc46 to your computer and use it in GitHub Desktop.
Save mishterk/6ccd78d18fc2a3a4dc0f1dd59c2afc46 to your computer and use it in GitHub Desktop.
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