Questions tagged [branching-and-merging]

In version control, branches represent parallel lines of development. Merging is the action that integrates changes made in different branches.

Filter by
Sorted by
Tagged with
-3 votes
0 answers
16 views

megre two deep model with keras [closed]

I am trying to buil an autism detection model, which incorporates race classification. This is my code def preprocess_image_and_get_skin_color(img_array): # Perform skin color analysis using ...
Linh Nguyễn Hoài's user avatar
-1 votes
0 answers
22 views

Validate the branch before merging using Jenkins [closed]

How can I prevent the bad code from entering to main branch. I need to run a Jenkins Job to scan and build (validate the salesforce component) the code before merging it to main branch. The problem ...
Thomas Raj's user avatar
-1 votes
1 answer
60 views

Git branching model for working on multiple versions simultaneously in 2023

So we are slowly but surely moving our development from SVN to Git (about time). Our team is quite familiar with Git but the SVN repo is quite massive and with it comes a lot of other teams and ...
Matheos's user avatar
  • 231
-1 votes
0 answers
22 views

I'm struggling to find diff tools that give a semantic level of information

I'm interested in UI for diff to merge (2 ways and 3 ways) and I already explored some tools available, and I only found tools that give raw information (like a line has been removed or added), and ...
HL_Research's user avatar
0 votes
0 answers
30 views

Every pull request merge increments behind commits to the main

I'm beginner to Github. First I created an empty repository by creating a only a readme file. Then I cloned it to my computer and added some files and commited them to push. It push fine because that ...
Nave3n's user avatar
  • 13
0 votes
0 answers
37 views

How to handle non-conflicting branches that break once merged

(The code examples below are fabrications to demonstrate the issue with git. Please ignore them otherwise.) Suppose I have a file source.js: function maker(str) { return `Hello ${str}!`; } function ...
Noah Bogart's user avatar
  • 1,702
0 votes
0 answers
45 views

How to protect branches' merge

🖐 I need to protect a main branch from other branches on the organization, ex. have an alpha branch, beta branch, development and main, and I must be force to push from the development branch to the ...
Yamilet Mendoza's user avatar
0 votes
0 answers
29 views

Need to merge git branch hotfix into main and dev but GitHub says there is no difference between hotfix and dev (there clearly is)

Dev is based off main; it is a work in progress for a new release, so it has much different code than main. I had to do a quick bugfix on the current version of my software, so I created a hotfix ...
Melvin's user avatar
  • 150
-1 votes
1 answer
48 views

Move all changes/commits from current branch to a different branch

I was modifying some code in a team repo and mistakenly made all my changes in the 'master' branch when I should have been working in the 'Development' branch. I committed my changes before I realized ...
TorusWithSprinkles's user avatar
0 votes
0 answers
24 views

Merge strategy when files moved between submodules

We are working on a big Unity3D project and dependencies were managed through submodules. Because that introduce no restriction between the submodules when it comes to dependency management, the ...
Bernhard's user avatar
-1 votes
1 answer
53 views

GitHub branching strategy for "servers" and "releases"

I am trying to wrap my head around creating a practical strategy for GitHub branches and deployments to multiple servers using GitHub Actions. I have the following four servers: Dev server QA server ...
Ben's user avatar
  • 16.1k
0 votes
0 answers
8 views

Branching and Merging Strategy

Our current branching and merging strategy: Developers get latest from the Develop environment and create a feature branches. Once Done, Developers merge changes back into Develop. QA then clones ...
Mark Saluta's user avatar
-1 votes
1 answer
44 views

How to restrict merging options on github

By default github provides three ways to merge a PR to a branch: Merge Commit Squash and Merge Rebase and Merge Can we add some branch rule or is there any way we can restrict them and allow only ...
Hardik3296's user avatar
0 votes
0 answers
16 views

Cannot lock ref error when pulling master branch in Sourcetree

I returned to a project I haven't worked on in many months and did the following in Sourcetree: Checkout master Pull But I got this (unable to update local ref) error and can't find a solution: git -...
user3120861's user avatar
0 votes
0 answers
31 views

git merge conflicts due to reverting: what strategies can be used to avoid such conflicts?

this images describes the issue we were facing branch k had merged b2 into itself, which was a mistake, we actually did not want any b2 related changes going into k. then k merged itself into b1, ...
Cui Pengfei 崔鹏飞's user avatar
1 vote
0 answers
34 views

Can a merge conflict occur in Git depending on the order of the branches merged?

Let's assume we have four Git branches: main, feature-a, feature-b and feature-c (where the feature branches are all originating from main). I know that feature-a and feature-b contain conflicting ...
Sebastian Lay's user avatar
1 vote
2 answers
85 views

Git rebase a branch from a branch that's also been rebased

Let's say I have this situation where branch1 was created from master. After a few commits on branch1, I also created another branch off of that called branch2. After this, someone else committed (D) ...
C.Tale's user avatar
  • 273
1 vote
1 answer
62 views

How can I keep a solved git conflict in a different branch?

Our team's branching strategy is a mix between git-flow and trunk-based. A feature is developed in a branch, then deployed to a staging environment for approval, then merged into master and deployed ...
Elías D's user avatar
0 votes
0 answers
14 views

How I can access latest prerelease nuget version

I have a following nuget packages Test.1.0.0.1.nupkg Test.1.0.0.2-rc1.nupkg Test.1.0.0.3-rc1.nupkg Test.1.0.0.4.nupkg Test.1.0.0.3-beta1.nupkg I want to install the latest prerelease package based on ...
user2964490's user avatar
0 votes
2 answers
31 views

How can I move old commits in a branch to a new branches?

I have a branch called staging that contains old commits that I would like to move to two separate branches. A - B - C - D - E - F - G - H - I staging I would like to move commits B and C to a new ...
Timothy Fisher's user avatar
0 votes
0 answers
19 views

TeamCity automatic branch merging to newer release branches

There is a manual how to make an automatic merge in TeamCity: https://www.jetbrains.com/help/teamcity/automatic-merge.html There we can select particular branch for merge. But in Bitbucket the ...
Alexander Tumanin's user avatar
0 votes
0 answers
108 views

How to setup Git with dev/stage/production branches to separates deployment tasks?

I'm looking for a way to setup a branching strategy that separates deployment tasks from each other. I recently read an article at http://guides.beanstalkapp.com/version-control/branching-best-...
artbandin's user avatar
0 votes
1 answer
45 views

Perforce: How to integrate across multiple branches

For a new feature I'm implementing, I'm looking to set up the following branches in a Perforce respository: branch A, which is the main branch, and branch B and C, both branched from A at the same ...
xEric_xD's user avatar
  • 516
0 votes
1 answer
23 views

In GitHub can I create a branch from a secondary branch and then merged it to main?

So I have the main branch. I usually open a new branch to get some work done, let call this branch_1. I have now finished my work on branch_1 and open a PR to main. But while I wait I want to do more ...
João Santos's user avatar
0 votes
0 answers
24 views

Workflow for merging changes from a non-master default branch to master

I am trying to implement a fairly basic CI/CD Workflow with Github to release changes to a dev and prod environment. I have setup a new default branch in Github called stable (as opposed to the ...
Vin's user avatar
  • 31
-1 votes
2 answers
52 views

git fetching and merging when origin and local and very different

I am working with a team project. There is this branch "current_feature" made by other developer. So I did git fetch origin current_feature and then git checkout current_feature. With that I ...
KansaiRobot's user avatar
  • 8,034
1 vote
1 answer
75 views

How to resolve merge conflict without merging branch

We use a production branch and a test branch. When we develop a new feature we branch it off production and make changes. When finished we merge it into test for it to be tested with all other ...
Roderik's user avatar
  • 192
0 votes
1 answer
122 views

What happens in git merge if one file does not exist in merged branch

I have a question about several merges from different branches. Steps Consider A and B are up to date with Master. A adds some files and changes some other files. B also adds some other files. A ...
MVana's user avatar
  • 11
0 votes
0 answers
15 views

subversion Duplicate Branch Folders

I am using tortoise SVN I must be using svn wrong but here is the issue: So I have a Trunk right, and I create Branch1 from it. Now if I do a svn update on Trunk I will see the branch folder in the ...
misperry's user avatar
1 vote
1 answer
81 views

find point where two branches in git FIRST diverged

This is slightly simplified from the real story, but hopefully close enough. Suppose I initially have one branch: develop. Then I create a new branch: release. At this point, release and develop both ...
Mark VY's user avatar
  • 1,559
0 votes
0 answers
77 views

Github branch protection forces pull request main to stage

We've setup branch protection on the branch main. Our developers merge to stage which is regularly merged into the main branch. Every time we do that GitHub suggests a new Pull Request from main to ...
theking2's user avatar
  • 2,276
0 votes
0 answers
89 views

Using GitLab Flow, how do individual changes get merged from lower to higher environments?

I'm evaluating GitLab Flow as a potential branching strategy for a team of about 20 developers. The process that's unclear to me is how changes are "promoted" to the higher environments. ...
Jesse Kearns's user avatar
0 votes
1 answer
53 views

How to merge release branch to main in case of conflicts

I have a release branch. After releasing the version, I am creating a tag and merging the branch into develop. In some cases there are merge conflicts. What is the best way to resolve conflicts, ...
ZHSX's user avatar
  • 41
2 votes
1 answer
210 views

Revert all merged commits after pushing them to remote

I have the next case. There are two branches: dev- our development branch that includes all the current results; ml_DEL-1049 - my working branch which was created for the particular task. While I was ...
Maxim Lukyanovich's user avatar
0 votes
2 answers
119 views

How to reliably run a specific git branch version of a bash script?

I have a script loop.sh that every few hours runs another script task.sh. They are both part of the same git repository. Currently, I run in a sperate screen instance (i.e. its own bash process) (main)...
Petr Doležal's user avatar
2 votes
1 answer
37 views

Move Git Diff for File from Descendant Branch to Ancestor Branch of Multiple Descendants

I am wondering if there is a way to take a file modification and move it to an ancestor of the current branch when the ancestor has multiple descendants. So in the picture, the master branch has a ...
riverofwind's user avatar
0 votes
0 answers
33 views

git pull not working on my working branch

I have two branches one to pull and the other to work from my instructor made. The main branch is pulling but the working branch isn't. I tried pulling from the working branch, this is the message I'm ...
Hailblacksnow's user avatar
1 vote
1 answer
122 views

What to do with GitHub Flow before initial deployment so main branch is "always deployable"?

So GitHub Flow seems to advocate keeping the main branch as the only permanent branch and sprouting off and merging ephemeral feature branches. It also says main should "always be deployable"...
sr3's user avatar
  • 389
0 votes
1 answer
192 views

Downsides of merging feature branches based on master to another collaboration branch AND to master?

Today I'm working with a trunk-based development styled branching strategy, which is not optimal from a deployment and collaboration perspective for different reasons. I have an idea to replace this ...
Cedersved's user avatar
  • 1,025
-1 votes
2 answers
161 views

How to "delete" history in Git feature branch

In a feature branch (cloned from master) we added some files and than deleted them. The same files where added to the master branch. When we now try to merge back the feature to the master the files ...
golfo's user avatar
  • 85
1 vote
1 answer
113 views

Keeping a semi-linear git history where some feature branches cannot be rebased?

I have the following situation: The teams want to keep a linear git history so they are enforcing rebase and squash. We have some feature branches with a long lifetime (months even) with multiple ...
Luca Sara Czudar's user avatar
0 votes
1 answer
475 views

How to sync two branches, without doing a new commit, which is having merge conflicts

I have to sync two branches, but it is having merge conflicts. There is a lot merge conflicts are there. So resolving all is not possible. Is there any other way, so we can sync? There is 2 branch ...
Swaraj's user avatar
  • 9
0 votes
1 answer
55 views

How to sync multiple feature branches with master in git

My Scenario is this : From master branch to feature branch1 , add changes to branch1 then create another branch from branch1 called branch2, then add changes to branch2. If there are then pending ...
lacoder's user avatar
  • 1,293
1 vote
1 answer
53 views

What is the best possible way to get a merged branch is different than master

I have started a job. I am responsible for updating the server with the latest commits as well. Forgive me if the question has been asked and I could not trace it. There are two branches master and ...
Qasim Ali's user avatar
  • 587
0 votes
1 answer
314 views

Managing feature branch versions with npm for component packages

We have a React App which uses some components written by us and published to our internal npm repository. Our code is maintained in Bitbucket Data Center, the build is done with Bamboo and the npm ...
Bruno Marotta's user avatar
0 votes
1 answer
394 views

Azure DevOps disable 'delete branch' after merge permanent on release branch (Folder: release/*)

I want to permanent disable 'delete Branch' on a specific branch after merging. Is there a way to avoid this permanently. That all cases for deletion are not possible. Since this is a release branch ...
cedfranke's user avatar
2 votes
0 answers
254 views

gitlab flow with release branches

with gitlab flow with release branching strategy, this is what my understanding is, you have one main branch which is long lived protected branch developers branch out feature branches from main and ...
Gaurang Shah's user avatar
  • 12.1k
1 vote
0 answers
56 views

Handle dependencies between git feature branches

I am part of a software developer team, where we are using a simple git branching strategy consisting of one long living main branch and arbitrarily many short living feature branches. To keep the ...
Dune's user avatar
  • 293
0 votes
0 answers
48 views

GIT Behind/Ahead Counter as a way to track deployed features

I am working on a project, and we have many people working on it. We have 2 branches: main develop When someone gets a task, they make a new branch for their task derived from develop and once they ...
Apollyion's user avatar
0 votes
1 answer
382 views

gitflow branching strategy with bitbucket

I am trying to implement gitflow branching strategy and trying to understand how to resolve the problem I am facing. if you think there is a better branching strategy which could solve this issue ...
Gaurang Shah's user avatar
  • 12.1k

1
2 3 4 5
31