本文共 369 字,大约阅读时间需要 1 分钟。
git branch
git branch test1git branch
lsecho 'test' > test1.txtgit add .git commit -m 'add test1.txt'lsgit checkout test1lsgit branch
git checkout -b test2echo 'test2' > test2.txtgit add .git commit -m 'add test2.txt'git branchlsgit checkout test1ls
本文转自 素颜猪 51CTO博客,原文链接:http://blog.51cto.com/suyanzhu/1907167
转载地址:http://idvdl.baihongyu.com/