I am using Git flow and I started out with a develop branch, master branch. Later, created a feature branch branching off of develop and when the functionality was complete, I merged it back to develop. Next time, Instead of creating a new feature branch, I created a new branch and added commits on that. Currently, I am on Origin/Mybranchname instead of develop/my-feature-branch. How do I make my current branch converted as a feature branch that branches off of develop?
Git flow- Need to create feature branch off of another branch
3.6k Views Asked by Azmeena At
1
There are 1 best solutions below
Related Questions in GIT
- problem to push files on a repository git
- diff3 output in git conflict style, including mergeable hunks
- Git Not In Sync with Local Branch
- Setting up the version control of .dotfiles while the .config is connected to a forked repo
- How to fix overriding the main branch in Git?
- I can't add text to "Message" in VS Code when committing to Git
- How can i redirect pull request from main branch to another branch
- Xcode commits (possibly outside of any branch) disappeared, how to get them back?
- Git/TortoiseGit : how to apply ONLY the changes from ONE commit from branch A, to branch B?
- How can I reintroduce username an password on git using fedora?
- GIT SKIP EMPTY DIRECTORIES
- Git smudge run once per checkout or per commit?
- I can't find ~/.profile or ~/.bashrc in C:/Users/<user>/.ssh folder
- Set environment variable during push for GitHub Actions
- Android WebRTC compile
Related Questions in VISUAL-STUDIO
- The current .NET SDK does not support targeting .NET Core 6.0. Brand new WPF Project VS Community 2022 17.9.5
- Dotnet Run is not working but the application is running in Visual Studio
- Is there a way to support Tailwind @apply in Visual Studio?
- How can I eliminate compile warnings using ZLib in Visual Studio
- C++(or Visual Studio) saving the file will not preserve the original file contents
- VS Community 2022 cannot install dotnet-ef when i try to publish
- Visual Studio 2022 convert spaces to tabs on checkout and back to spaces on checkin
- What should I do if Visual Studio has a restriction on creating files with a long name or a long path to these files?
- Command line error D8036 - not allowed with multiple source files with node-gyp and VS2022
- Migrate Old VS 2015 .suo file to the New VS 2022 DocumentLayout.json
- How to make one executable visual studio, that users can run?
- Use tabs instead of spaces in .csproj file in Visual Studio 2022
- Unity - scrollview/dragging breaks after specific scene inactivity
- How to make Visual Studio 2022 project launch Windows Terminal instead of PowerShell?
- Why is 'EDITBIN /STACK:2097152 w3wp.exe' cmd is giving me an LNK1342 error?
Related Questions in GIT-FLOW
- What is the correct process for merging hotfix changes into multiple release branches (ie: dev/staging)?
- GitFlow for feature split in sub branches
- Bitpucket Pipeline Configuration for Gitflow Branching Model
- Git Flow: Managing Main-Develop Version Discrepancy After Feature Merges
- How to handle PRs when using Gitflow?
- Addressing the hotfix, bugfix, and versioning aspects for GitFlow?
- Need to have 2 active release branches in git-flow
- Constant merge issues from release branch to master and back to development
- Why we shouldn't merge main branch to develop branch in gitflow?
- Github action to extract current version from package.json, increment the version and create the branch before running `npm version`
- Multi-module application and versioning strategy
- Using gitversion with gitflow and github actions for nuget package
- Publish to Azure DevOps feed with same prerelease but different metadata?
- GitFlow - Master or Develop branch which to mirror
- Make long lived release branch sync with master whilst keeping commits
Related Questions in JGITFLOW-MAVEN-PLUGIN
- Custom release-start, release-end messages in a custom Bitbucket's step
- How to fix an UnknownHostKey error when using the Maven jgitflow plugin?
- gitflow maven plugin - develop version after hotfix finish
- Jgitflow maven plugin fails to execute
- I get "Please tell me who you are..." error while running gitflow command with ssh-agent defined in Jenkinsfile
- getting exception (org.eclipse.jgit.api.errors.TransportException) when running jgitflow start on my maven package
- How can I debug a third party mvn plugin during goal execution?
- jgitflow-maven-plugin always produces merge conflict
- JGit Flow plugin stops after entering passphrase
- How to specify new release version by using gitflow-maven-plugin
- What's the right maven command for releasing from release branch to master with gitflow-maven-plugin?
- Is there any cool and simple project for learning Gitflow for beginners?
- How can I change 'MAJOR' AND 'MINOR' with gitflow-maven-plugin
- How to setup or integrate gitflow in Intellij editor to start feature branch
- JGitflow triggers concourse job infinitely
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You need to rename your branch so it follows the convention of feature branches, and then to rebase your branch onto the develop branch.
To rename your current branch, check out your branch and use
git branch -m:Once your feature branch has been appropriately renamed, you can proceed with the rebase. Make sure you have the latest
origin/developchanges usinggit fetch, and then rebase your feature branch ontoorigin/developusinggit rebase:Depending on whether your changes overlap with the ones that have been done on
origin/develop, you may have merge conflicts. You can fix these conflicts similarly to the ones you may have had in the past withgit merge.