Git Learning Tips Summary

Source: Internet
Author: User

The power of Git is that

1. Branching can be established anywhere, so that the development of different functions will not be relied upon, so that different versions of the code can be completely preserved.

2. You can reverse the code version at any time to a correct time, back to the clock.

3. You can use reset to remove the locally-submitted version of redundancy.

4. You can use the stash to stage a series of zero operations. Spatial reversal.

5. Allows users to easily switch between local and remote branches, and version management is very flexible. (spatial reflux)

Git workflow:

Synchronize with remote repository (pull,fetch); modify files; View changes (Show,status);

Loading changes (add Or–a), submitting the loaded changes (commit), repeating, uploading (push)

????????? git config username and email:

? Open Gitbash

git config--gloabl user.name "Your name"

git config--global user.email "[Email protected]"

git config--list

Exit

First git library?: Tell Git who you are

Gitconfig–global User.Name "Xucons"

Gitconfig–global user.email "[Email protected]"

Create a library Gitinit

Cloning a library Gitclone git://git.kernel.org/scm/git/git.git

Git Learning Tips Summary

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.