# Can I squash the merge created by "git subtree add"?

1 messages from 2016-11-16 to 2016-11-16. Participants: Kannan Goundan.
Thread: https://gitlist.dev/t/44498

## Kannan Goundan, 2016-11-16 19:37

Subject: Can I squash the merge created by "git subtree add"?
Message-ID: <CAM7aVoVP2+v5G2f7NUt14j9NKJvJxxSFXZLANP5UqiYEQgbBqQ@mail.gmail.com>
URL: https://gitlist.dev/e/CAM7aVoVP2%2Bv5G2f7NUt14j9NKJvJxxSFXZLANP5UqiYEQgbBqQ%40mail.gmail.com

```
When I do a "git subtree add", I get two commits.

    df7e8f5 Merge commit '6de34775ea846c90e3f28e9e7fdfe690385c068b' as
'go/src/gopkg.in/ns1/ns1-go.v1'
    6de3477 Squashed 'go/src/gopkg.in/ns1/ns1-go.v1/' content from
commit 1d343da

Unfortunately, in the environment I'm currently working in, merge
commits aren't allowed.

Is it safe to squash these two commits into a single commit?  Will
future "subtree" commands still work correctly?

```
