Common git commands (TIPS)

Source: Internet
Author: User
Tags git commands

Common git commands (TIPS) install git Java code sudo apt-get install git initialize git Java code git init View File changes in the current directory Java code git status tracking Modify file Java code git add file name e. g git add README for version Java code git commit-m "Remarks" Java code git commit-m-a 'Remarks information' (for files that are frequently modified, you can add the-a parameter, save Every git add operation) view git modification log Java code git log view modification details (add-p parameter) Java code git log-p install the front-end tool, beautiful view of the modified content Java code sudo apt-get install tig can be directly input to view the modified information, exit with Ctrl + C add git account Java code git co Nfig -- global user. name "your name" git config -- global user. email you@example.com view added information Java code cat ~ /. Gitconfig

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.