I want to combine several commit into one commit.
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"
Before I push, I want to combine Feature A commit 1,2,3 into one commit Feature A commit, and same as Feature B.
How can I do that?
 
     
     
    