Separating git commits for private and public

51 Views Asked by At

How can I separate git commits / git history from personal (private) and public. I have several computers and I often switch between them. In order to have the latest code available I very often do commits on one computer, and then pull it on another computer. This causes a very ugly commit history, which doesn't make sense, and therefore I don't want these commits to be in the history when I push a new version to a public git repository. What is the correct approach here?

0

There are 0 best solutions below