I started a local git repository. Now, at this point, I want to publish it, say to github, but I don't want to publish the whole history of the project, just the latest revision.
In particular, I'd like to create a local "pub" branch, make some modification on it (possibly hiding sensitive information), and the publishing the "pub" branch.
If I were to do what I said using a plain push, I'll find myself having all the "pub" history published to the remote repository, something I don't want since sensitive information would be published too.
How can this be achieved?
Thanks!