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