大佬教程收集整理的这篇文章主要介绍了Git 系列教程(11)- 分支简介,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
git add README test.rb LICENSE git commit -m 'The initial commit of my project'
执行 git commit 后的步骤
polo@B-J5D1MD6R-2312 watermarker % git checkout newtest2 M test.py A test1..3.txt A test1.txt D test111.txt A test3.txt 切换到分支 newtest2' polo@B-J5D1MD6R- git log commit 6652c6d6c439cb23ef6aaff79eeccbf3213a9a0b (HEAD -> newtest2,tag: 1.2,origin,newtest3)
切换分支后查看提交历史
可以看到指向最新提交对象的分支有三个:origin、newtest2、newtest3,当前 HEAD 指向的分支是 newtest2,因为刚刚切换到 newtest2 了
再次修改并提交
@H_722_53@made other changes'
@H_801_377@
git log --oneline --decorate --graph --all
git log --oneline --decorate --graph --all * c2b9e (HEAD,master) Made other changes | * 87ab2 (tesTing) Made a change |/ * f30ab Add feature #32 - ability to add new formats to the central interface * 34ac2 Fix bug #1328 - stack overflow under certain conditions * 98ca9 initial commit of my project
以上是大佬教程为你收集整理的Git 系列教程(11)- 分支简介全部内容,希望文章能够帮你解决Git 系列教程(11)- 分支简介所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。