当前位置:   article > 正文

git merge_mac git merge配置txt

mac git merge配置txt

有两个分支:master和b1, 其中master分支有master.txt和master-mod.txt两个文件, b1分支有master.txt和b1.txt两个文件

做一下实验:

1. HEAD在master上,执行git merge b1, 结果是master新增了b1.txt文件;  同理,如果HEAD在b1分支上,执行git merge

  1. MJdeMacBook-Pro:git1 mjli$ git status
  2. On branch master
  3. nothing to commit, working tree clean
  4. MJdeMacBook-Pro:git1 mjli$ ll
  5. total 16
  6. -rw-r--r-- 1 mjli staff 14 Jan 31 22:35 master-mod.txt
  7. -rw-r--r-- 1 mjli staff 12 Jan 31 22:32 master.txt
  8. MJdeMacBook-Pro:git1 mjli$ git branch
  9. b1
  10. * master
  11. MJdeMacBook-Pro:git1 mjli$ git merge b1
  12. Merge made by the 'recursive' strategy.
  13. b1.txt | 1 +
  14. 1 file changed, 1 insertion(+)
  15. create mode 100644 b1.txt
  16. MJdeMacBook-Pro:git1 mjli$ ll
  17. total 24
  18. -rw-r--r-- 1 mjli staff 8 Jan 31 22:37 b1.txt
  19. -rw-r--r-- 1 mjli staff 14 Jan 31 22:35 master-mod.txt
  20. -rw-r--r-- 1 mjli staff 12 Jan 31 22:32 master.txt
  21. MJdeMacBook-Pro:git1 mjli$

 

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号