1

Possible Duplicate:
In git, is there a simple way of introducing an unrelated branch to a repository?

Let's say that I have two git branches. One with stable app (master) and one with new features (dev). Assume I want to drop history. However I would like to keep relation between master and dev, so that new git tree would be one commit with old master and one with dev changes.

Community
  • 1
  • 1
user986654
  • 215
  • 3
  • 9

1 Answers1

2

Does git checkout --orphan suit your purposes?

Amber
  • 507,862
  • 82
  • 626
  • 550