These are some general notes and useful information about programming or other related topics.
Merging GitHub Repos whilst maintaining histories is a bit of a pain. The following steps should help you to do this.
- Create/Locate the Repo that you want to Merge into.
- cd into the Repo
- git remote add -f
- git merge /master --allow-unrelated-histories
- git remote remove
- git commit -m "Merged Repo"
You may need to fix some conflicts, but this should be minimal. (Opening in VSCode is the easiest way to sort this)
cd /Users/caddickbrown/Documents/Projects/General git remote add -f SApps https://github.com/Caddickbrown/SApps.git git merge SAppTemplate/master --allow-unrelated-histories