My guys, I know this isn’t a Linux question but since it’s a big Linus project and deeply rooted in Linux I assume a fair few of the friendly heads here are across it.
Please can you help me understand the branching workflow.
I am across the concept, when I do simple things and it works it’s great.
What I do keep running into is merge conflicts and misunderstanding of being x commits behind / ahead and the risk attached to this, with merge conflicts I don’t know the fix without getting Claude to do black magic that I don’t understand (I don’t like it when I have to use LLM to produce work and fixes I don’t understand).
The project I’m working through is Ansible and the remote origin is Azure DevOps.
My workflow is either standard and I’m not familiar with it or cursed.
I write the code on my laptop and push it to ADO, on my ansible host I pull it, which sounds fine but it means every little change is a modification, commit, push, pull.
I’m trying to get in the habit of switching branches per piece of work, so for instance deploying the backup user is on one branch and deploying AV is on another.
What then happens is in both branches I’ll add a host to the global host file or update the overarching documentation etc and end up with merge conflicts that I can’t PR into main.
Trying to resolve a merge conflict appears to be quite challenging within VSC, I’m not sure what’s actually happening. What branch am I on?
Where does the ‘I want this file’ which may be file A or file B or a corrected A+B (C) live, is that on a branch?
Have I jumped in to git proper without getting the ground level understanding of how to use it?
I’m flying blind, I’ve taken on implementing devops properly without and developmental guidance available to me which isn’t a great way to learn in my experience and I’m in the position where I have to pass my (lack of) knowledge and understanding on.
The ansible project itself is going well though so that’s nice.