Add SSE to an Existing Repo
This is an uncommon scenario, but suppose;
- You already have a Github repo for this site 
- It's already Typescript-based, or contains other unrelated content like CSS and data 
- You want to "convert" it to an SSE repo 
In this scenario you can "merge" SSE's template repo into your current repo, resolve any conflicts, and then gradually refactor your existing code into SSE's infrastructure.
- Open the Terminal in Your Codespace. 
- Add the Remote Repository: (If you haven't done this already) - git remote add template-repo https://github.com/sygnaltech/sse-template.git
- Fetch the Remote Repository: - git fetch template-repo
- Merge with the - --allow-unrelated-historiesFlag:- git merge template-repo/main --allow-unrelated-histories
- Resolve Any Conflicts: If there are merge conflicts, use VS Code's merge conflict resolution tools to resolve them. 
- Commit and Push Changes: - git add . git commit -m "Merged template repository into current repository with unrelated histories" git push origin main
Last updated
