1

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!

Community
  • 1
  • 1
JarryZhou
  • 11
  • 1
  • 2
    You could just send the files and not the `.git` directory. So no git tracking history was shared. – clmno Aug 01 '18 at 12:03

0 Answers0