git usage process specification

I used to use svn before, but git has been useless for a long time, a brief summary:

//首先拉取代码

git clone 项目代码地址

git init

//然后创建自己的本地分支,进行代码开发

git branch 分支名

//开发完毕后

git status

git add .

git commit -m "提交日志"

git checkout 主分支

git pull

git checkout 自己的分支名

git merge 主分支

git push

Guess you like

Origin blog.csdn.net/qq_30596783/article/details/124825063