xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

git merge bug All In One

git merge bug All In One

本地分支 dev commit 后, 直接 pull 远程 dev 分支, 导致远程 dev 分支 merge 到本地 dev 分支了, 取消本次 merge 操作?

Remote: 远程主仓库;
Repository: 本地仓库;
Index: git 追踪树, 暂存区;(git stash)
workspace: 本地工作区(即你编辑器的代码)

SourceTree

少用 git pull, 多用 git fetch + git merge

https://www.oschina.net/translate/git-fetch-and-merge?print

git workflow

  1. 首先 git add
  2. 其次 git commit -m"commit message"
  3. 然后 git pull
  4. 最后 push

https://segmentfault.com/q/1010000009549291

git workflow

2.1 集中式工作流

2.2 功能分支工作流

2.3 Gitflow工作流

2.4 Forking工作流

https://github.com/xirong/my-git/blob/master/git-workflow-tutorial.md

https://www.youtube.com/embed/R8i30SuzjVU?start=92

https://youtu.be/R8i30SuzjVU?t=92

refs

https://juejin.cn/post/6844903921425580045



©xgqfrms 2012-2020

www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!


posted @ 2021-01-07 23:02  xgqfrms  阅读(116)  评论(3编辑  收藏  举报