我想將幾個提交合併爲一個提交。如何在推送前清理git提交日誌?
git checkout origin/develop -b develop
echo "a" >> README && git commit -am "Feature A commit 1"
echo "a" >> README && git commit -am "Feature B commit 1"
echo "a" >> README && git commit -am "Feature A commit 2"
echo "a" >> README && git commit -am "Feature B commit 2"
echo "a" >> README && git commit -am "Feature A commit 3"
echo "a" >> README && git commit -am "Feature B commit 3"
我推之前,我想成爲一個承諾Feature A commit
結合Feature A commit 1,2,3
,並同Feature B
。
我該怎麼做?