GitHub Collaboration

Hello everyone, I am currently working on a landing page project with my team, and we are facing some challenges while merging our individual sections into a test branch. To avoid any confusion, I have created a separate test branch from the main branch for comprehensive testing before integrating the changes to the main branch. To streamline this process, I have added comments in the HTML file to indicate specific sections for each collaborator. However, we have encountered some issues during the merge process. For instance, when we tried to merge the second branch into the test branch, it overwrote the first feature instead of combining them. I am seeking guidance on the best practices and steps to ensure a seamless merge of each branch into the test branch, while preserving the integrity of each section in our landing page. Any assistance or insights on how to resolve this issue would be greatly appreciated!
19 Replies
ἔρως
ἔρως11mo ago
not gonna lie, but, it sounds like y'all are overcomplicating everything, and stuff's breaking left and right why is the landing page so complicated to need multiple sections? why is it in pure html, instead of another language like php or javascript or hugo?
Koli
KoliOP11mo ago
It's because we're all working on the same page, and each person is assigned some sections to code.
ἔρως
ἔρως11mo ago
that's hell to manage
Koli
KoliOP11mo ago
We're still learning 😅
ἔρως
ἔρως11mo ago
do you know if the host is using apache? or has php?
Koli
KoliOP11mo ago
None of that has been integrated. We've just been working with HTML and CSS for now
ἔρως
ἔρως11mo ago
then i recommend you to stop or, you could try to pick one that pushes the changes to the branch, then all the others stash the changes then pull and then unstash and then push it's leagues better if you are all working on separated files, instead of all on the same file or, you can just push and manually deal with merge conflicts by not overwritting others' changes
Koli
KoliOP11mo ago
So what you're saying is, each collaborator has to pull changes from the test branch into their own branch in order to solve this
ἔρως
ἔρως11mo ago
if that's how you're all working, yes
Koli
KoliOP11mo ago
Oh okay. That should work 👍 Alright then. Thank you for your time 🙏
ἔρως
ἔρως11mo ago
but honestly, what i would do is to just find a way to have everything in separated files it will save you a ton of headaches
Koli
KoliOP11mo ago
No problem man. I'll see what I can do about that
ἔρως
ἔρως11mo ago
if you all have python, there's a way to test the final result and terribly build a final version that you can use or even in the browser, you can make this work with javascript
Koli
KoliOP11mo ago
Looks like I have a lot more to learn. If you don't mind I'd love some tutorial recommendations on how to do what you suggested
ἔρως
ἔρως11mo ago
well, in javascript, you can just use a fetch and then shove the content into a div it's awful, and don't do that, but it is "ok" until you have a proper system same for css: you can use the @import until you have a proper system and a proper build step (if you use sass, which you probably will want to)
Koli
KoliOP11mo ago
Yeah, Sass will come in handy. I'll work with these for now, thanks again.
ἔρως
ἔρως11mo ago
you're welcome sometimes, the answer to your question is something you didn't ask for, but (trust me on this) it will save you tons of headaches
Koli
KoliOP11mo ago
True. I'm glad I asked at least cause I was getting frustrated
ἔρως
ἔρως11mo ago
im sure there's a simpler way to do this with git, but honestly, it's too much work did you managed to solve this?
Want results from more Discord servers?
Add your server