github operation command

1, the code got me

git clone 项目地址

2, branch switching

git checkout 分支名称

For example: git checkout master

3, to add the modified code

git add .

4, submitted modified code

git commit

5, modify the annotation file

6, push the code

git push

7, see the tag of the project

git tag

8. Add tag

git tag tag名称

For example: git tag 0.03

9, promote new tag

git push origin tag名称

For example: git push origin 0.03

Published 308 original articles · won praise 51 · views 210 000 +

Guess you like

Origin blog.csdn.net/zhizhuodewo6/article/details/104300664