Git fork vs clone of template theme #372
Replies: 1 comment 3 replies
-
Okay, so, I actually went ahead and switched my work from a cloned-template to a forked-template. Just for clarity, I did this, so I could just use the Github feature 'Fetch Upstream' to easily apply Henk's Here was the basic process I used to get there:
In my case, the merge resulted in conflicts in 6 files, probably about 10-12 conflicts:
I resolved those conflicts by hand with VSCode. I tested it, and everything looks groovy. This proceedure may or may not be for you, I am a mid-level git user, not a pro, but not a git beginner either. I am thrilled though, now I should be able to use the 'Fetch Upstream' button to get new features if I choose. I am kind of wondering if there are some downsides to my documentation repo being a fork rather than a |
Beta Was this translation helpful? Give feedback.
-
I'd thought I put a post here in can anyone else wants to discuss it.
I have a Doks repo that I cloned from the Doks template a month or so ago.
I now want to update my repo to include new features in the template theme (copy button on code blocks).
I know I can fuddle through using git cherry-pick to make that happen, and it will probably be okay.
I may be able to also use git fetch and git merge to sync to the master.
But the truth is, I don't use either of these methods often enough to really feel good about what they do to my master repo for my documentation.
But it occurred to me, had I forked the Doks template, rather than cloning it, I could simply 'sync my fork' from the upstream using the Github sync feature
That would be such an easy way to stay up to date. (Presuming conflicts don't occur)
Anyway, just curious if anyone is doing this, or if anybody has any thoughts on this approach.
Cameron
Beta Was this translation helpful? Give feedback.
All reactions