1 git checkout -b lee //新建一个分支并切换到该branch
2 //假设自己edit code
git add filename //
git commit -m “修改说明”
3 //如果在master也需要修改文件 必须要切进来 做2 的操作 。。。
4 git merge lee //如果有冲突 必须先手动解决冲突
此时还是在master branch 上,
git add filename
git commit -m “conflict fixed”
/[master cf810e4] conflict fixed
Gitlab branch

gitpushoriginmaster//branchlog git log –graph –pretty=oneline –abbrev-commit
//查看branch status
gitstatus//git branch
// 新的一天开始记得 pull code from remote
$git pull origin master 到本地

相关文章:

  • 2021-09-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-20
猜你喜欢
  • 2021-04-05
  • 2021-10-09
  • 2021-09-27
  • 2021-11-16
  • 2021-07-04
  • 2022-12-23
相关资源
相似解决方案