除了截图,我无法解释:
这到底是什么意思?feat-zoo
树枝似乎不知从何而来。
编辑:
根据请求,用于生成此脚本的脚本。运行脚本,查看图表,然后重新开始,删除sleep 2
调用,您将获得与上面的屏幕截图匹配的不同结果。
#!/bin/sh
[ -d .git ] || git init
ACT="rebase"
echo "blah blah" > file1.txt
echo "another file" > file2.txt
git add file1.txt file2.txt
git commit -m "MASTER C1"
sleep 2
echo "new line here" >> file1.txt
echo "new file" > file3.txt
git add file3.txt
git commit -a -m "MASTER C2"
sleep 2
echo "bug fixes" >> file1.txt
echo "bug fixes" >> file3.txt
git commit -a -m "MASTER C3"
sleep 2
git branch feat-zoo
echo "MAGICAL" >> file2.txt
git commit -am "MASTER C4"
sleep 2
git checkout feat-zoo
git $ACT master
echo "new end" >> file3.txt
git commit -am "BR C1"
sleep 2
echo "**END" >> file2.txt
git commit -am "BR C2"
sleep 2
git checkout master
sed -i 's/blah blah/WHEEE/' file1.txt
git commit -am "MASTER C5"
sleep 2
git checkout feat-zoo
git $ACT master
echo "FINAL" >> file1.txt
git commit -am "BR C3"
sleep 2
git checkout master
echo "Done" > signoff
git add signoff
git commit -m "MASTER C6"
sleep 2
git merge feat-zoo