GIT & GITHUB notes explain the practical operation

Syntax collection]

ls - lA, Show all categories, including the hidden directory (A to uppercase, lowercase, not sure what is displayed)

mkdir create a folder

pwd current working directory

.git, in linux. "" beginning of the document are hidden

ll .git / => .git file display subfolders

cat .git / config => file contents

cat ~ / .gitconfig => display files in the home directory contents .gitconfig

Home directory: cd ~ (during To add a space, or the system does not recognize)

 

【11】

1. Initialization: git init

2. Set signature: 

  Function: to distinguish between different developers of identity

  Form: username + email

  Analysis: Signature and login to remote libraries (code hosting centers) account here, a relationship password

  Signed at two levels: Level 1 item / warehouse level: only valid in the current local library (native library project is the project's main folder)

            git config user.name username (Note that after user.name, without adding any symbol)

            git config user.email emailaddress

           2. The system user levels: the current operating system login user (the user logs on this computer operating system)

            git config --global (see Path: cat ~ / .gitconfig)

           3. Priority: the principle of proximity: "project level" above "the system user level"; both one or the other, or can not submit

            4. General user set the system level, if demand, then set the level of the project

 

[12] Adding to submit & view status

git add = save files to the staging area;

Cancel Put in storage area: use "git rm --cached <file> ..." to unstage

 

Guess you like

Origin www.cnblogs.com/George19950505/p/12235778.html