Common to simple commands Sublime Git NPM windowscmd macterminal (Unix command)

Source: Internet
Author: User

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

-saveAnd 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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.