Questions tagged [git-flow]

The git-flow workflow defines a strict branching model designed around a project release. It provides a robust framework for managing larger projects. Use this tag for help with applying git-flow to your workflow, or for help with the supporting scripts (either the original scripts or the AVH Edition).

Filter by
Sorted by
Tagged with
0 votes
2 answers
27 views

What branching model should I use for multiple specialized releases?

I'm working with a team on a project that has multiple releases for special customers ( They get custom features, therefore need their own release ) and I'm not sure what branching model to use? I ...
0 votes
0 answers
34 views

How can I get ArgoCD to deploy an application for each feature branch for any git provider?

I have installed ArgoCD v2.6.5 using the Helm chart here, version 5.27.0. Our team uses feature/ branches to perform independent development work, before merging to develop, and then main. This ...
0 votes
1 answer
25 views

Get changes from featurebranch checkout from preprod in to develop branch

In my repos i have branchFeatureA checkout from preprod. Then all commit of branchFeatureA will be merge to this branch develop is branch for all developers push codes of all features. and I uses ...
  • 21
0 votes
1 answer
20 views

Git Release flow: deploying features not in commit sequence

I am starting a new project and would like to use Release Flow http://releaseflow.org/ I would have a "main" (master/production) branch, which will represent latest project state. To make a ...
1 vote
2 answers
76 views

GitFlow - How can I achieve continuous deployment for some parts of a pull request/deployment even when others don't past testing?

We have 3 environments: Staging - where all developer pull requests get merged for quality assurance testing Release - After quality assurance testing, staging pull requests are merged into the ...
0 votes
1 answer
24 views

Deploying test and production branches of a git repository on two separate subdomains using a script

I am currently working on a Linux bash script to deploy a specified branch of my git project on my website : the develop branch to a test subdomain and the main branch to the main domain. To do so, I ...
0 votes
0 answers
11 views

GitlabCI configuration of 2 exclusive jobs

I have pretty common (I guess?) use case for GitlabCI I want to create next Semantic Version by choosing one of possibilities - patch or minor Then I want to build image with this version So my ...
  • 501
1 vote
1 answer
45 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 ...
0 votes
0 answers
47 views

How can I create a Git workflow that listens for changes in a specific directory and displays select branches in a dropdown?

so I am new to git action workflow and got my first task which is a workflow_dispatch which listen to a code changes in some directory (source/team_a). I want to be able to display only the relevant ...
-2 votes
1 answer
320 views

how to fix "Another git process seems to be running in this repository" [duplicate]

start project by git flow and in process bugfix not commit finish process see error to other order git: Another git process seems to be running in this repository, e.g. an editor opened by 'git commit'...
1 vote
0 answers
42 views

How do I manage PR and CI pipelines in Git Flow strategy?

If I deploy to prod from the latest release branch forked from dev how can I integrate PR to review code? Also, if I would like to run a test integration pipeline automatically when a pull request is ...
  • 37
1 vote
1 answer
41 views

Gitflow, Squash merged and AzDO branch compare

We are currently using Git flow as a branching strategy, and we are squashing our feature branches into develop. We are also squashing our release branches into main. The AzDO branches page show ...
1 vote
0 answers
71 views

Maven gitflow fails with: release: fatal: refusing to merge unrelated histories

On github actions, am trying to release a version but it fails with error: release: fatal: refusing to merge unrelated histories Here is the command run: mvn -B gitflow:release -DreleaseVersion=${{ ...
0 votes
0 answers
13 views

Stop script execution when FATAL

Using git flow i have created few feature branches, but to make things easy i started using a shell script that can create/close feature branches in swift, but the problem is if the feature branch ...
0 votes
0 answers
83 views

Why are all my commits in SourceTree in one straight line?

I recently started using Git and SourceTree for a project I'm working on. I have worked with Git a little bit before in a previous job, in which case I used Fork. Someone else then set everything up ...
  • 131
1 vote
1 answer
103 views

Multiple Initial Branches in Azure DevOps Repositories

I was wondering if it is possible to make Azure DevOps to automatically create both master and develop branches upon creating a new repository. I want both branches protected. If project level branch ...
1 vote
1 answer
32 views

Why does a new git branch have the old history?

I'm studying design patterns in python and I'm doing version control in git. The first thing I did was create a branch called "Creational Patterns", in which I made a commit for each one (...
  • 79
1 vote
1 answer
144 views

git flow feature finish

Hi I am new and I am not sure if this is a valid question or if the answer is a simple "it's the same" I am using git flow for my java project and I have been using $ git flow feature start ...
0 votes
1 answer
50 views

How should I merge into main branch in Git with this structure?

In my team, we have a repository that has two branches to deploy a website: Main and Develop Main: This one, is connected with the server and this branch only contain the minimal folders with the ...
0 votes
0 answers
132 views

gitflow-maven-plugin with protected master branch: create PR

My master branch at github is protected, changes can only be made via Pull-Requests. With gitflow-maven-plugin gitflow:release I'd like to create a PR from develop to master instead of a push to ...
  • 1,252
0 votes
1 answer
325 views

mvn gitflow:release-finish with main-branch

I'm getting the following errormessage: Failed to execute goal com.amashchenko.maven.plugin:gitflow-maven-plugin:1.18.0:release-finish (default-cli) on project parent: release-finish: error: pathspec '...
  • 128
0 votes
0 answers
47 views

Git check for child branch [duplicate]

I'm working with git flow and trying to setup an automation for start/finish branches. imagine that I create a feature_1 based on develop branch, $ <develop> git flow feature start feature_1 ...
1 vote
2 answers
277 views

Should I test master branch before put into production?

I'm working with git flow and a doubt arouse about the master branch. I have development and user acceptance working on develop branch and when I finish the test, I merge the develop with master ...
1 vote
1 answer
34 views

Git branch between hotfix and develop

I am currently developing a branch flow based on GitFlow, I am in the stage of defining how the interaction between the hotfix branch and the develop branch will be done after a correction in ...
  • 83
0 votes
1 answer
240 views

When to request a Code Review in Git Flow?

At my company we recently started using gitflow for managing our branches, my doubt is: at what point should code reviews be done? Simple gitflow: Let's say we have these opened pull request: ...
  • 79
1 vote
1 answer
55 views

Gitflow practices: how to get the code from origin/develop to local/feature-x with respect to having good-looking git-history

I have the following git structure: local/develop, local/feature-x, origin/develop, origin/feature-x, origin/feature-y... each local is tracking its corresponding origin, and there is another ...
user avatar
0 votes
1 answer
199 views

Why does git-flow create a merge commit for my rebased branch

I'm using git-flow and have rebased my feature branch with the develop branch. However, when I try to finish the branch (git flow feature finish tests), git wants to create a merge commit. When I look ...
  • 1,496
0 votes
1 answer
145 views

Branch git flow, start, which branch?

So i created a git flow with the command "git flow init". I'm on develop. If i do "git flow start feature MY_FEATURE", it's duplicate develop for a feature. "git flow start ...
0 votes
0 answers
84 views

release package in conan using gitflow

According to the following image: From: http://datasift.github.io/gitflow/IntroducingGitFlow.html Once I've decided to release my package - I should create release branch (f.e. release/1.0.0) and ...
  • 2,387
0 votes
0 answers
67 views

Git branch rule policy name on merge or PR creation

I want to enforce our branching model, so for that I want to restrict main branch but only allow branch names that start with release/* and hotfix/* (wildcards). How can I restrict git repos with this ...
1 vote
1 answer
33 views

Scalable Pattern for large Feature Splits in git-flow tracked project?

I am in charge of infrastructure for a project that consists of a large repository including submodules. The project team successfully implements git-flow (as described here) to support versioned ...
  • 51
0 votes
1 answer
406 views

GitFlow feature finish does not merge the feature branch into develop

i've incurred onto an issue on my local machine related to git-flow. Following the working tree i should do the following operations: git flow feature start X commit 1 (no push) commit 2 (no push) ...
  • 564
-1 votes
2 answers
97 views

how to get remote updates to my local working copy in git

how do i update my local working copy of source code with current latest version of remote code? This is the situation: Suppose 2 people(A,B,C) are working on the project and they follows git flow.. ...
  • 93
2 votes
1 answer
1k views

How to deal with release branch when develop has progressed since release branch was created in git flow?

I think I have a peculiar scenario. We follow standard git flow in our organisation. Except, the release branch takes a bit long to be ready to be merged back into master and develop. We used to block ...
  • 60.8k
2 votes
1 answer
74 views

When to drop support for deprecations in git-flow / semantic versioning

We work by the git-flow workflow and we stick to semantic versioning. Today we discussed how to handle deprecations. Two questions have arisen: A. Semver: Is it ok to gracefully deprecate a feature in ...
  • 37
1 vote
1 answer
1k views

How to handle release candidates in git-flow

We're working by the git-flow workflow. Typically we release some release candidates (RC, v1.0.0-rc.0) before we ship the final release (v1.0.0). To do so, we have a release branch (release/1.0.0). ...
  • 37
3 votes
1 answer
1k views

Gitflow, managing hotfixes, version tags and releases

I'm following the GitFlow workflow but I'd like to know how people approach the issue of bugs with versioning/releases We have a set of features that are linked to versions. feature set {A,B,C} -->...
  • 169
1 vote
2 answers
58 views

How to maintain seperate files in dev and main branches and sub branches github

Question: When merging dev into main, how do I keep them .ebextensions and .elasticbeanstalk commited on their respective branches but never overwriting each other during merges? Requirement: I wish ...
-1 votes
2 answers
417 views

If a pull request is still pending, how do I continue working (Gitflow)?

So we are using GitFlow working schema. I have a branch named feature/foo, I just finished my ticket there and I created a Pull Request, that branch (feature/foo) is going to be merged with our head ...
0 votes
1 answer
288 views

Fast forward merge after git flow hotfix

I have three branches production , develop and a fix branch as shown below (A,B and C are commits) : A (production,fix) \ B (develop) I want to be able to only perform fast forward ...
1 vote
1 answer
123 views

Is it a good practice to use git merge `ours` strategy in a git flow release process

I've 3 branches: Dev (on which developers push their code), Qa (on which tests are done) and Master (production code). When releasing, we merge (default merge) Qa into Master and Dev into Qa. I've ...
  • 1,132
1 vote
1 answer
454 views

Using "git flow release finish" why merge master into develop not use the release branch?

I have question about git flow operation. I watched the post about the "Release branch". Finally, the release branch merged into master and develop respectively. I also followed the ...
1 vote
1 answer
485 views

Git detects files as newer after reverting a merge, so it doesn't show conflict

I have this scenario: There are 2 branches, 'develop' and 'feature-branch'. This two branches have been growing over time each one independently. Now, 16 of November of last year, a merge was done ...
0 votes
0 answers
803 views

How to automate a git-flow with Github Actions?

How to create jobs to control git-flow? We know that in the git-flow process, we have specific branches to be used and at the right times, such as (develop, hotfix, feature) and we also know that when ...
0 votes
0 answers
65 views

I need help trying to replicate the flow I follow when using Github on Bitbucket

I have both accounts and projects on both services. I try to replicate my Github flow on bitbucket projects but so far it has not been possible. The git management is the same, but the issues or ...
  • 1,353
0 votes
1 answer
305 views

How to update git flow release branch name to reflect minor version increase?

Lets say I started release using: git flow release start 1.5.0 Then I published the release branch as part of CI/CD for bitbucket pipelines to build this release for testing team: git flow release ...
  • 2,531
3 votes
1 answer
815 views

git flow for feature branch

The current git flow for the team. 3 branches in total main develop feature When we're in the development stage When there is a new jira ticket, we will create a feature branch from develop. After ...
  • 5,328
0 votes
0 answers
57 views

How to set up git branch flow when having a shared code on feature branches

I have a project, current set Main branch as the production branch and another develop branch for features branch intergration. I create a few big feature branches, for example, feature/page-A and ...
  • 710
0 votes
1 answer
67 views

How to implement DEMO release

My team and I are using GitFlow to versioning our code, but now we need to have a third branch for DEMO to be able to publish from DEVELOP in DEMO for testing and then from DEMO to MASTER when all ...
3 votes
1 answer
1k views

How to restrict the merge request to be executed only from and to specific branches?

I am trying to implement git flow with GitLab. The flow of merge requests should be restricted. For example, it should not be allowed to create a merge request from a feature branch to main. Can I ...
  • 176

1
2 3 4 5
22