cd projectA git remote add -t master -f projectB [email protected]:appian/projectB git subtree add -P appian-libraries/projectB/ projectB/master
cd projectA git remote add -t master -f projectB [email protected]:appian/projectB git merge -s ours --no-commit --allow-unrelated-histories projectB/master git read-tree --prefix=appian-libraries/projectB/ -u projectB/master git commit -m 'Merge projectB/master'
git fsck --name-objects
use this to fetch all missing objects
git fetch-pack --refetch --all $(git config --get remote.origin.url)