Learn how to merge two Git repositories into one while preserving commit history with a step-by-step guide.