# Unneeded branch history

2 messages from 2008-12-10 to 2008-12-10. Participants: Luca Siciliano Viglieri, Santi Béjar.
Thread: https://gitlist.dev/t/16663

## Luca Siciliano Viglieri, 2008-12-10 11:13

Subject: Unneeded branch history
Message-ID: <50628.127.0.0.1.1228907607.squirrel@localhost>
URL: https://gitlist.dev/e/50628.127.0.0.1.1228907607.squirrel%40localhost

```
Hi,
i have tried to find a solution to my problem, but i couldn't find
anything on the documentation.
I have created from master branch a development branch. I keep the master
branch regularly uptodate from the server and in the development branch i
commit my code. When i merge the two branches i obtain a commit with two
parents and when i push my master branch to the server, all my development
history it is also saved in the server.
Can i avoid saving my develoment history, at least on the server, so that
the master branch has only one parent commits?
Thanks

Luca Siciliano

```

## Santi Béjar, 2008-12-10 12:43

Subject: Re: Unneeded branch history
Message-ID: <adf1fd3d0812100443v23c539d6q66049af911c90d49@mail.gmail.com>
URL: https://gitlist.dev/e/adf1fd3d0812100443v23c539d6q66049af911c90d49%40mail.gmail.com
In-Reply-To: <50628.127.0.0.1.1228907607.squirrel@localhost>

```
2008/12/10 Luca Siciliano Viglieri <Luca.Siciliano@bittwister.com>:
> Hi,
> i have tried to find a solution to my problem, but i couldn't find
> anything on the documentation.
> I have created from master branch a development branch. I keep the master
> branch regularly uptodate from the server and in the development branch i
> commit my code. When i merge the two branches i obtain a commit with two
> parents and when i push my master branch to the server, all my development
> history it is also saved in the server.
> Can i avoid saving my develoment history, at least on the server, so that
> the master branch has only one parent commits?

$ git merge --squash

or

$ git rebase -i master

and squash/edit/... some of the revisions (this way you can have the
interesting development history)

HTH,
Santi

```
