The GIT protection of a patient

Time:2021-11-11

The GIT protection of a patient


The GIT protection of a patient

Toner


If git has not been used yet, it is necessary to record the results of the it protection system generated by the technology. The contents of this document are generally used by GIT/ p>

The valve toner is attached (the contact point is filled with paper), the relevant law (the paper) is connected, and the paper is collected (the paper)/ strong>
This document GitHub (GIT operation of the first session) has been uploaded, and the document has been effectively processed/ strong>

What is commonly used/ h4>


mkdir folder_ Name // create file? [folder_name: file name (in the following column): it demo]
cd  folder_ Name // enter a file? touch file_ Name // create a file? [file_name: file name О (only one index. JS]
vim file_ Name // to edit a file? [the following column (IM index. JS)]
rm -rf file_ Name // delete file or patient file [RM - RF file_name]
Ls // what is the voided item
Clear // clear screen

Set up git store


1. Article 1. Party A shall print the cost git of the article in the warehouse, and the cost shall not be less than? Git file:/ p>

MKDIR git demo // create a file? cd git-demo
Git init // create a name Sub items of GIT

2. Article 2. Party B shall hold the GIT inventory in the place where it has been stored:/ p>

Git clone < URL > // url click the store address
git clone https://github.com/FishStudy520/git-demo.git

Git config (configure power brush information)


Configuration of electric brush information (user name and pipe level):/ p>

Git config user.name 'your name' // configure the power brush name? Git config user.email 'your email' // configure the electric brush mailbox

To configure information (yes, configure information):/ p>

git config --list 

It is necessary to add a brush when configuring it--globalWhat/ p>

Git config -- global user.name 'your name' // configure the power brush name/ code>

Git help


Please refer to the general rules and regulations

git help 

To ensure the safety of the GIT switch

git help -a 

Ensure that the document is submitted properly., The following columns:/ p>

git help add 

Git status?


Keep your eyes open/ p>

git status 

It is not necessary to leave the file due to the operation and storage area, such as the following:?
Untracked files: a file that has been set up and a newly created file? (file level not tracked;
Changes to be committed: if you save the received files, the files will be kept in the record number of the added records in it add, but will not be saved;
Changes not staged for commit: save the saved files;

The GIT protection of a patient

  1. Untracked and modified filesgit add .Submit to the storage area, usinggit reset HEAD <file>This is? Code > git add
  2. The received file (odified) is? Code > git checkout. All modified files will be traced to unmodified (before receiving)
  3. From the “unmodified” option, the company will be able to print out the document from the local store and support the new document

When the temperature is low, the temperature in the pipe is low -s

git status -s

Git add (add to storage area)


Send file? The file is provided to the storage area and added to the order or patient?

git add file file1 ...

Add all the files of the current item to the modified files in the storage area, and update the new request file level:/ p>

git add .

Group control х The file of is added to the version file (excluding the file level of the file):/ p>

git add -u

All changes that are not currently available can be added to the save menu:/ p>

git add -A

Git commit (the place where the text is provided)


Git commit will provide the company’s local store with the “specified” information, and the provider will provide an ommit ID, which will be in the important position in this article/ p>

The results of the internal submission will be displayed?

git commit -m 'message'

Submit the saved files to the final location? Legal (files added in this manual):/ p>

git commit -a -m 'messgae'

If the submitted information has been cleared, you can modify it by using the following methods:/ p>

git commit --amend

Git support


Set the support in the company’s store and mark it with the record? Current support is displayed:/ p>

git branch 

Support for the specified items (this item is divided according to the results of the previous process):? Code > – a yes?--allInternal operation of

git branch -a 

Create a new support:/ p>

git branch <branch_ name>  //branch_ Name: new distribution name/ code>

For example, if the filter support is located in the master support, the filter support is replaced by the development support:/ p>

Git checkout develop // brush to brush support

To delete a support:? Code > – d yes?--deleteInternal operation of

git branch -d  <branch_ name>  // branch_ Name: the name that needs to be supported// In the following table, the development is supported
git branch -d develop
//When the support is deleted, the support is not divided. If the support is deleted, the following protection is used:? git branch -D develop

Print current support name О What/ p>

git branch --show-current

It refers to the combined support based on the support:/ p>

git branch --merged

It is a combined support based on the current support:/ p>

git branch --no-merged

Git checkout (check out)?


git checkoutThe most important action is to replace the support or patient’s files/ p>

Brush replacement support:/ p>

git checkout <branch_ name> // branch_ Name: support name О
Git checkout develop // brush to brush support

When you create a new drug distribution, it will not be damaged until it reaches these supports

git checkout -b <branch_ name> //  branch_ Name: new brake support О
Git checkout - B develop // create a development support and replace it to the development support/ code>

Changes to the voided areas must be assigned, and they will not be separated

git checkout -f  <branch_ Name > // modify and replace quickly? branch_ Name Juan/ code>

Git merge


git mergeThe operation of the drug is to distribute the specified drugs to the current support:/ p>

Rear support:/ p>

git merge <branch_ name> // branch_ Name: support name О

When the contract is completed and divided into several parts, if the contract is completed and the water is flushed, it shall be returned to the place before the contract

git merge --abort

git reset


git resetBecause the figure is the version, you can specify the version provided by the other party/ p>

The reason is that there is no change in the internal control system

Git reset head ^ // add all the files to one page of the directory? git reset HEAD^ <file_ Name > // add a single file to the record? Git reset < commit ID > // copy the file to the specified version

Git log


Submit the record of the patient:/ p>

Git log // press? You can Q select View from the list/ code>

If number
–Oneline: within the frame of GIT log, the first seven fields of limit hash are printed out, and the description is submitted:/ p>

git log --oneline 

-P) view the details of the changes provided by the mobile phone/ p>

Git log - P // determines the number of changes submitted each time? Git log - P < File > // specify the provider record of the specified file/ code>

–Stat, which is used to view the information provided by the mobile phone, so you can quickly view the information provided by the mobile phone, and then -p manage the mobile phone

git log --stat

–Pretty (these numbers are used to print out the standard information in the specified format), such as “online” and “format”

git log --pretty=oneline 

-n: N limit the number of output from the H “limit, and the N right to provide the party’s information to leave

Git log - 2 // the information submitted in this bar

–Graph, which shows the number of records that are supported during viewing

git log --graph

Git diff


It is required that you will be able to save the documents and save the contents of the product (excluding the new version of the documents) in the current operation/ p>

git diff 

It is determined that the current operation is related to a new one:/ p>

git diff HEAD
Git diff commit ID // the version number of the first ommit ID has been determined (ommit ID), which corresponds to the version number provided by the party/ code>

It is determined that the currently operated area is the same as the one that has not been allocated:/ p>

Git diff master // the sensor is supported by the master

Determine whether the support is aligned:/ p>

Git diff master... Develop // the master node supports the development node/ code>

Some files of the product can be used for other purposes--statIf any:/ p>

git diff --stat

Git tag?


git tagTo mark the logo of GIT version

Tag mark of the selected item:/ p>

git tag 

Create a non Ag tag;

git tag v0.0.1   

Please specify the details of the tag

git tag <tag_ name>  // tag_ Name: tag name О
//For example, view 0.0.1 tagged records
git tag v0.0.1

To delete a submission tag;

git tag -d v0.0.1

To allocate Ag inventory to this site:/ p>

git push origin --tags

Determine all the leakage from the store;

git ls-remote --tags origin

Create a new distribution from a non Ag current account

git checkout -b <branch_ name> <tag_ name>  // branch_ Name: new distribution Name:_ Name? Tag name/ code>

Git store


Store in the store:/ p>

git remote -v

To add a store:/ p>

git remote add <short_ name> <url>  // short_ Name: rear door in the pipe О (RL) by process end area

//The following columns:? git remote add  fishStudy520   https://github.com/FishStudy520/git-demo.git

From the date of the conclusion of the procedure and the date of the printing to the date of the final version, you have not signed the contract (according to the data of the conclusion of the procedure in the contract):/ p>

Git fetch < remote > // remote:? Address:

From the process result number and the discount to the local result, the data shall be collected (including the data of the process result of the contract):/ p>

Git pull origin master // pull this button to print the inventory data

To delete a distribution from a store

git push origin --delete <branch_ name>  // branch_ Name: This is the name to support/ code>

Control to store:/ p>

Git push origin master // the process of sending a request to the master of the store is supported

To provide the process to the store:/ p>

git remote show origin

Change the name of the store О What/ p>

git remote rename old_name new_name 
 //The following columns:? git remote rename fishStudy520 fish001

Remove from store:/ p>

Git remote remove fishstudy520 // delete fishstudy520 from the store

Git pull? Value of GIT fetch

git pull = git fetch  + git merge

Bask cleaning/ h4>


Gallium ц To perform the operation of revoking is to save the receipt date to the invoice?
The place of business is the place where the law says that it’s a place where the item item is going to be a place where a person is going to be a person to be a person to be a person to be a person to be a person to be a person to be a person to be a person to be a person to be a person to be a person to be a person to be a person to be a person to be a person to be a person to be a person to be a person to be a person to be a person to be a person to be a place to be a place to be a place to be a place to be a place to be a place to be a place to be a place to be a place to be a place to be established. The key is that the place to be a place to be a place to be a place to be a place to be a place to be a place to be a place to be a place to be a place to be a place to be a place to be a place to be a place to be a place to be a place to be a place to be a place to be a place to be a save, correct bugs, and then add support to the table: Duplicate the contents of the container from the container/ p>

After adding the equipment legal information, the party will decide:/ p>

Git stash save < message > // message (the information provided by the equipment is valid:? or
Git stash // no equipment information is added/ code>

List of published items:/ p>

git stash list

By default, the changes of the regulations on the skin color are the first one. If the skin color is other than the skin color, the skin color of the “tash ${num}” (UM H “product) will be changed/ p>

Git show stash // by default, the first one is displayed, and the second one is displayed? What? Git show [email protected]{1} // it's scheduled to release all the internal information in the second chapter/ code>

The search items that are not deleted in the column of application submission but are deleted in the column? It is the first time for a person to leave the hospital, and it is the first time for a person to leave the hospital/ p>

Git stash apply // by default, this is the same charge value as git stash apply stash 
Git stash apply // by default, this is the same charge value as git stash apply stash ${0} 
Git stash apply stash ${1} // use the second setting/ code>
Git stash apply stash // use the second setting/ code>

If it is required to submit a voucher, it should be released from the list

Git stash pop stash @{2} // use? Set the default value? Delete and delete from storage

Delete the previous cost breakdown from the list:/ p>

Git stash drop stash @{2} // click in the list? How long is it/ code>

To delete a stash of an optional package:/ p>

git stash clear

Results


The GIT protection of a patient

Name:/ h4>


If there is no electricity or no electricity, the amount of electricity will be increased (grade I)? (iodine count) (iodine count) (iodine count)/ p>