How will local git repository code delivery to a remote repository? [Graphic tutorial]

1. Open a command line, move to the root directory of the project

>E:
> cd E:\WorkSpace\Y2\Bootstrap\Chapter01_Example

step 1

2. Initialize the git project

> git init //初始化本地仓库 

Step 2

3. Add all the files to the staging area, and submitted to the local repository

> git add  //将所有文件添加到暂存区
> git status  //查看状态
> git commit -m "提交描述"

figure 1figure 2

4. Create a remote repository, and local and remote warehouse warehouse bind

Creating a remote repository

> git remote add origin 远程仓库ssh地址

Here Insert Picture DescriptionHere Insert Picture Description

5. Submit the local repository to modify a remote repository

> git push origin master

Submit code to a remote repository

Published 56 original articles · won praise 17 · views 6197

Guess you like

Origin blog.csdn.net/qq_43199016/article/details/102689452