更新时间:2022-10-05 08:24:05
git branch
git branch test1 git branch
ls echo 'test' > test1.txt git add . git commit -m 'add test1.txt' ls git checkout test1 ls git branch
git checkout -b test2 echo 'test2' > test2.txt git add . git commit -m 'add test2.txt' git branch ls git checkout test1 ls
本文转自 素颜猪 51CTO博客,原文链接:http://blog.51cto.com/suyanzhu/1907167