Skip to content

Instantly share code, notes, and snippets.

@devwax
Last active March 18, 2020 00:49
Show Gist options
  • Save devwax/d809d61ebadb6cf9900b495d82ce3ede to your computer and use it in GitHub Desktop.
Save devwax/d809d61ebadb6cf9900b495d82ce3ede to your computer and use it in GitHub Desktop.
# Pull remote branch to server
# https://stackoverflow.com/a/9537923/2480125
git fetch origin
git checkout --track origin/feb-2020
# Untrack directory that was previously commited but should now be ignored
# https://stackoverflow.com/a/7927283/2480125
git rm -r --cached wp-content/plugins
git commit "'Remove ignored directory /****/"
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment