Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

README.md

Merge two repositories together

Using git subtree

cd projectA git remote add -t master -f projectB [email protected]:appian/projectB git subtree add -P appian-libraries/projectB/ projectB/master

using git merge

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'

Fri Dec 16 15:38:48 PST 2022

git fsck with more information

git fsck --name-objects

if git fsck shows broken link

use this to fetch all missing objects

git fetch-pack --refetch --all $(git config --get remote.origin.url)