When writing the files configuration of the NPM. Pakege.json file, if you have a file that you do not want to include, create a. npmignore file to exclude, but the Windows system does not allow you to create a file named after the point?
This is the time to use the Linux command line tool to create such as Git bash.
Git bash commands for creating files and folders are as follows:
#创建文件 VI #创建文件 Touch #拷贝文件 CP #移动文件 MV #创建文件夹 mkdir #另外还有好多命令能够创建文件 that the command is able to redirect output to a nonexistent # file, creating a file. For example tail
But when git Bush used the VI command to create a file and entered the Vim editor, I didn't know how to exit, and found a way to find out:
Method: Press and hold ESC continuously, and then exit by pressing the uppercase Z two times.
But in fact, I found that as long as you hold down the shift keyboard, the following commands are available:
If you want to edit a document can be directly edited as you have a document AA can be used with the VI AA "NOTE: Must be in the directory of AA" If there is no document and you want to edit it can directly edit the VI AA "name you can casually name" can also first create a document touch AA and then edit VI The AA editor has three modes 1 command line mode 2 last line mode 3 input mode press ESC to enter command line mode is also the system default mode input mode can press O i a can enter exit can enter the last line and command line mode in the last line mode can press CTRL +; Its main function is to exit the editor or save the exit Document q! "Force quit do not save" Q "Exit Do not save" Wq "Exit and save after you can also add a! "In the input mode and command line mode commands a lot if you want to know specifically what you can do in and I say copy (yy) paste (p) remove (d) and so on
Just, when using the Wq, you have to ESC, then hold down the SHIFT key, the following interface can be entered before the command:
How to exit the Vim editor in Git Bush