The command to be memorized in git summary _linux shell

Source: Internet
Author: User

Submit Process Related

View file changes and new files

 
 

Add new File

git add Your_file_path 
//Add all Files
git add * 
//Add a type of file

Simple submission of files

 
 

Submit all of your modified files and the files you added

 
 

Undo Modify a file

 
 

Discard all local modifications

Git fetch origin 

Update Related

Update Remote Code

 
 

Show Merge Conflict file

 
 

View a merge conflict file

 
 

Add Resolve conflict files

 
 

Submit your changes to the trunk

 
 

Branch related

Create a new branch and cut to the branch

 
 

Toggle Branch

 
 

View the branch and the list of branches

 
 

Submit to a branch

 
 

Contrasting branch Differences

 
 

Merge a branch into your current branch

 
 

Delete a branch of a remote warehouse

 
 

Delete a branch

 
 

Label and project initialization

 
 
 
 

Configuration

Configure your user name and mailbox

git config--global user.name "Jack" 

Conclusion

Git need to memorize the command summary to this end, I hope this article content for everyone's learning work can help, if there are questions can be a message discussion.

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.