I started a local git repository. Now, at the moment, I want to publish it, say, github, but I do not want to publish the entire history of the project, only the latest version.
In particular, I would like to create a local "pub" branch, make some changes (possibly hiding confidential information) and publish the pub branch.
If I did what I said using a simple push, I found that all pub publications were published in a remote repository, which I donβt want, since confidential information will also be published.
How can this be achieved?
Thanks!
source
share