C
C#16mo ago
oe

GIT Question for company

Sorry if this is a really noob question, but I don't want to bother my manager and also I've never worked as a team on a Git project and never ran into this issue... I have coded a branch1 on my company GIT repository. After I have finished coding it, it is pending work review, so they haven't integrated it into master yet. Now I have been told to code a new branch2. However, now there are updates on main that are not in the branch1, and updates in the branch1 that are not in main. I need both of these changes to update what I am doing in branch2. What solution do I have apart from asking them to finish the pending work review and integrate branch1 to main and then pulling the new main from my side?
3 Replies
Pobiega
Pobiega16mo ago
imho, merge/rebase main into branch1, then diverge branch2 from branch1. you will need to rebase branch2 if there are any fixes/changes required to branch1, but seems like the simplest approach
oe
oe16mo ago
ok, is that the usual approach? wouldn't branch2 in one way or another rely on branch1? they are 2 completely different functionalities and it would make the most sense to keep them as separate branches
Pobiega
Pobiega16mo ago
I need both of these changes to update what I am doing in branch2.
so how do you plan to work on branch2, that by above statement requires branch1, without branch2 containing the code from branch1? and to be clear, they would be separate branches. its just that if branch2 were to be merged before branch1, it would cause issues if you don't need the changes from branch1, just fast-forward main to the latest remote version, then branch out branch2 from main and get to work.
Want results from more Discord servers?
Add your server
More Posts
✅ Debugging razor component page isn`t workingCould you please tell me why the debugger on the .razor page may not work? On the page to which visu❔ How to read configuration based on environmentI have a stored my connection string as configuration in web.config. Now I have stored the same conn❔ PlayStation 2 startup recreationWondering how I can recreate the iconic PS2 startup, and whag framework would fit this question❔ Send using http post with multiple parameters, to an endpoint defined in C# with minimal APIsI've got an endpoint like so: ```csharp app.MapPost("/endpoint1", async ValueTask<IResult?> (string ❔ Does AssemblyLoadContext use dependencies that are already loaded in the default context?I'm not debugging any issues, I'm just trying to make sure I understand what I can expect this subsy✅ Can't use `gh webhooks forward`: "Error: you must be authenticated to run this command"I'm trying to forward github webhooks to a local server for testing purposes, following <https://doc❔ need some help for school assignment - changing image via variablehey, having problems building a microsoft form in c#, part of my assignment is to build a basic educ❔ Writing to StreamWriter FailsHi, I was experimenting with permanently saving things for the first time and ran into problems. Des❔ road mapi have a question, basic c# and .which topic should I study after netcore 5 training?✅ Testing GitHub webhooks on my local machineI'm currently developing a project using <https://github.com/octokit/webhooks.net>. What's the best