Last active
July 14, 2023 03:12
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git commit -m "Stopped tracking third party plugins" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ignore all plugins | |
/plugins/* | |
# Allow tracking of plugins with our custom prefix | |
!/plugins/hookturn* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git rm -r --cached plugins |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment