$ git branch
* feature/hoge
master
$ git log --oneline
685f2cd branch second.
3db2c11 branch first.
81ce98c third commit 2.
01773a5 second commit.
9948182 first commit.
$ git merge --squash feature/hoge
Updating 81ce98c..685f2cd
Fast-forward
Squash commit -- not updating HEAD
branch.csv | 1 +
branch.tsv | 1 +
2 files changed, 2 insertions(+)
create mode 100644 branch.csv
create mode 100644 branch.tsv
$ git ci -a
[master b18e876] Squashed commit of the following:
2 files changed, 2 insertions(+)
create mode 100644 branch.csv
create mode 100644 branch.tsv
$ git log --oneline
b18e876 Squashed commit of the following:
81ce98c third commit 2.
01773a5 second commit.
9948182 first commit.