I have two bare repositories.
repo1 - with all the history
repo2 - new, empty one
I want to push all the files from
repo2, but without the whole history, just the the state from the last commit.
I don't want to touch the history of the
repo1 (it's best to assume it's read only). In the new repo I don't want to have any history (including reflogs), so shashing after the push is not an option.
Is this ever possible without creating new, temporary repository?
How can I achieve this?