Hubert Solecki
Hubert Solecki

Reputation: 2771

Merge two project with GIT

I have multiple projects that (Dynamics CRM solutions for those who knows) that have have the same folder structure and I need to merge one project with another in order to:

What would be the best way doing it with GIT ?

Upvotes: 0

Views: 222

Answers (1)

Stanislav Bashkyrtsev
Stanislav Bashkyrtsev

Reputation: 15318

If you want to keep the history and the fact that they were merged, then:

git clone git@projecta
cd projecta
git remote add -f projectb git@projectb
git merge projectb/master

If you don't care about history - then just place files manually and commit. It's possible to make a merge commit (that points to 2 parents) even in case of manual merge with low-level commands like git-commit-tree.

Upvotes: 1

Related Questions