GIT command usage notes, git command notes

Source: Internet
Author: User

GIT command usage notes, git command notes


Git init
Initialization
Git add
Add to temporary storage Zone

. Add all

/ Add folder
Git commit
Submit

- Automatically put the recorded and modified files into the cache area before submission

-M Add submission instructions
Git clone
Clone version Library
Git pull
Submit a remote version Library
Git push
Push to remote version Library
Git fetch
Obtain remote version library submission
Git checkout
Check out to workspace/switch or create Branch

-B branchname Create a new branch and switch to it immediately

-D branchname Delete Branch
Git remote
Remote version Library Management
Git config
Query and modify configurations
Git status
Display workspace File status

-S Get brief result output
Git log
Show submitted logs

-P Display the differences between each update in patch format

-- Stat Displays the statistics of each file update.

-- Pretty Display Historical submission information in other formats

-- Oneline Show only one row

-- Author Only displays submissions related to the specified author

-- Committer Only displays submissions related to the specified submitter

-- Since/after Displays the submission after the specified time

-- Until/before Display the submission before the specified time

-- Grep Filter submission records based on comments



Git diff
Difference comparison

V1.0 Project changes after v0.9 release

BranchA branchB View the differences between branchB and branchA

-- Cached View changes to cache

HEAD View cached and Uncached changes



Git branch
Branch Management
Git reset
Reset and Change Branch "cursor"

HEAD Cancel cached content
Git rebase
Branch base change
Git grep
Search and locate File Content
Git merge
Branch merge
Git show
Display various types of objects
Git rm
Delete an object
Git stage
Equivalent to git add
Git tag
Tag an important point in history
  - Create a tag with Annotation
Git stash
Save and restore progress

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.