Skip to content

Instantly share code, notes, and snippets.

@lunaluna
Last active June 12, 2019 05:02
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 lunaluna/e1f96a6f1bdc5ab3d756bdd4ef19c574 to your computer and use it in GitHub Desktop.
Save lunaluna/e1f96a6f1bdc5ab3d756bdd4ef19c574 to your computer and use it in GitHub Desktop.
.gitignoreを後から適用する

通常の場合(あとから変更したものを反映させたい場合)

$ git rm -r --cached .

部分的に(特定のファイルだけ)反映させたい場合

$ git rm --cached ***.php

とか

$ git rm -r --cached www/wp-content/uploads

とか

@lunaluna
Copy link
Author

@lunaluna
Copy link
Author

@lunaluna
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment