How to merge two git repositories

L'Antre du Tryphon

schedule
2025-05-25 | 15:56h
update
2025-05-26 | 21:39h
person
www.ctheroux.com
domain
www.ctheroux.com

How to merge two git repositories

These steps will let you merge a source repository into a destination repository.

  • cd source-repository-directory
  • git checkout the source branch
  • cd destination-repository-directory
  • git remote add source-repository-name source-repository-directory
  • git fetch source-repository-name –tags
  • git merge –allow-unrelated-histories source-repository-name/branch
  • git remote remove source-repository-name

Advertisement

Imprint
Responsible for the content:
www.ctheroux.com
Privacy & Terms of Use:
www.ctheroux.com
Mobile website via:
WordPress AMP Plugin
Last AMPHTML update:
01.10.2025 - 17:18:52
Privacy-Data & cookie usage: