首页 > 技术文章 > git 命令使用

summer-qd 2021-01-20 16:01 原文

1、下载代码

git clone '项目地址'

2、切换分支

git checkout -b '分支名称'

3、提交代码

git add .
git commit -m '描述'
git push origin '分支名称'

4、合并分支

git merge '分支名称'

推荐阅读