Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

20240826 subfolder merge strategies #46

Conversation

stefan-b-jakobsson
Copy link
Collaborator

@stefan-b-jakobsson stefan-b-jakobsson commented Aug 26, 2024

This PR is just testing subfolder merge strategies. Here adding the bootloader project as a subfolder. I think it looks pretty clean.

Git commands used to produce the local repo:

git clone https://github.com/X16Community/x16-smc.git
cd x16-smc
git remote add -f bootloader https://github.com/stefan-b-jakobsson/x16-smc-bootloader.git
git merge -s ours --allow-unrelated-histories --no-commit bootloader/20240711-v3   
git read-tree --prefix=bootloader/ -u bootloader/20240711-v3
git commit -m "Merge bootloader project"    

@stople
Copy link
Collaborator

stople commented Aug 26, 2024

Not sure if it becomes more or less clean, but, one option can be to add one commit to your source repo/source branch where you move all files in the repo to the appropriate sub folder. Then, the merge commit will just merge these commits without "altering" (moving) files as well. (After merge, your private repo should preferably be abandoned). Except this suggestion, it seems like you were able to properly merge the repos.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants