Skip to content

Instantly share code, notes, and snippets.

@khoahuynhdev
Last active May 6, 2019 06:06
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 khoahuynhdev/f9938d849f0498c7738f6b48b0b1383c to your computer and use it in GitHub Desktop.
Save khoahuynhdev/f9938d849f0498c7738f6b48b0b1383c to your computer and use it in GitHub Desktop.
useful methods to handle some situations
// If you’ve accidentally checked in node_modules before, that’s okay. You can remove it like this:
echo 'node_modules' >> .gitignore
git rm -r --cached node_modules
git commit -am 'ignore node_modules'
// create dump data for mysql
// SET PATH FIRST
mysqldump -u YourUser -p YourDatabaseName > wantedsqlfile.sql
// Use utf8 in CMD Windows
cmd /K chcp 65001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment