Sublime selecting tags and their contents
Ctrl+shift+a Continuous Press two times
Git undo Add
Resets the specified file for staging area, consistent with the last commit, but the workspace remains the same
git reset [file]
Undo Commit
Resets the specified file for staging area, consistent with the last commit, but the workspace remains the same
git reset [file]
Reset staging area to workspace, consistent with last commit
git reset--hard
View git history
git log
Exit Press the Q key
Npm
-save
And save-dev
can save you the steps of manually modifying the Package.json file.
npm install module-name -save
Automatically add modules and version numbers to the Dependencies section (the published environment is also used)
npm install module-name -save-dve
Automatically add modules and version numbers to the Devdependencies section (for production environments)
Windows Cmddir
File list for current directory
Macterminal (can be thought of as UNIX commands can be used, plus mac own commands) LS (list)
File list for current directory
-A
Lists all files, including implied files that begin with a point.
-R
Show all files including sub-directories
PWD (print working directory)
Displays the path of the current directory (path)
CD (change directory)
Change the current directory
(1)..
Represents the parent directory to go to the current directory.
(2)/
Represents the go to root directory.
(3)
When there is no option, go to the user's home directory
Touch file_name
Create a new file, modify the file date
Function: Change the date of the file, do not modify the contents of the file, if the file does not exist, create a new file.
Mkdir
Format:
mkdir Directory_name
Function: Create a new directory
MV (move)
Move a file or file name change
Format:
MV Filename1 filename2
MV filename ... directory
MV Directory1 Directory2
Function: change The name of a file or directory, or move some files to another directory.
Note: When the filename1 is renamed to Filename2, if filename2 already exists, the contents of filename2 will be overwritten by filename1
RM (remove)
Format:
RM filename
Rm-r direction
Function: Deletes the specified file or files in a directory.
-F
--force
Force Delete, ignore nonexistent files, never give a hint.
-I.
--interactive
Interactive mode deletes the file and gives a hint before deleting the file.
-R
--recursive
Recursively delete directories under files and subdirectories under files.
-R
--recursive
Recursively delete directories under files and subdirectories under files.
Common to simple commands Sublime Git NPM windowscmd macterminal (Unix command)