cdyboke

git checkout master
git pull

git checkout -b feature/newdy
//  把你的改的东西加到这个新分支里,可以借助git cheeypick 命令
 
//切换到develop,将自己的分支merge到develop
git checkout develop
git pull
git merge feature/newdy

// 推送代码,去测试
 

//每次checkout分支或者merge分支之前都要先pull最新代码

 

删除远程分支

git push origin --delete <branchName>

 

撤销某次commit, 这里又是一次commit

git revert commitid

 

完全删除某次commit(服务器里的也被删除了, 危险!!!)

git reset commitid

git push --force

分类:

技术点:

相关文章:

  • 2022-01-07
  • 2021-12-10
  • 2021-11-12
  • 2021-11-23
  • 2021-11-23
  • 2021-11-23
猜你喜欢
  • 2021-10-16
  • 2021-08-11
  • 2021-05-26
  • 2021-09-11
  • 2021-11-23
  • 2021-11-23
  • 2018-03-18
相关资源
相似解决方案