Git combat (2)--Local initialization

Source: Internet
Author: User

Git initialization consists of two ways: direct initialization locally, initial with clone and checkout remote remote repository, and this section discusses the former first.

Initialize git locally, using the GIT init command

[Email protected]~$ mkdir studygit[email protected]~$ cd studygit[email protected]$ git initinitialized empty git reposito Ry In/users/houenxun/studygit/.git/[email protected]$

If you want to see that git initialization is successful, you can use the git status command to view the status of your local repository

[Email protected]$ git statuson branch masterinitial commitnothing to commit (create/copy files and use "Git add" to track )

On Branch Master means that you are currently in the Master branch, and the operations on the branch will be accessed in detail later!

Nothing to commit means that no content needs to be submitted, indeed no, nothing has been added!


Next, we will discuss the operation of the local warehouse!

This article is from the "Technical Achievement Dream" blog, please be sure to keep this source http://houenxun.blog.51cto.com/3958763/1672658

Git combat (2)--Local initialization

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.