I created a new git repository and want to migrate some branches to it. However I don't want to migrate the commit history. what I've done:
1 create new repository and use
git remote set-url origin XXXXX
to switch to the new repo.
2 I have a branch "test" with a long commit history.
I want to push it to new repo but I don't want these commit history. How can I do this?
Thanks in advance!