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
- Push mysql database script to server using git
- Git show's file path
- Git > diffs filtered, show only certain changed classes/files
- Pushing to git repository hosted by Visual studio online without entering user name and password
- How do I create my own Git branch to work on?
- Git init --bare giving error fatal: Out of memory? mmap failed: No such device
- Sub-directory into independent repository and later merge back into main repository
- How to find the Git Revision Hash in a synced SVN repo using SubGit?
- eclipse errors when try to change to master git branch
- How to have Heroku build my development branch on a staging server?
- Is "Merged in" a commit message created by bitbucket, or git?
- Git: Multiple projects under one directory
- Permission denied hg-git
- Is it possible to clone a private git repo without adding ssh keys
- Track file in master repository which is ignored in submodule
Related Questions in VISUAL-STUDIO
- NuGet - Given a type name or a DLL, how can I find the NuGet package?
- Exception thrown at 0x0131EB06 Visual Studio
- Visual Studio 2015 Cordova Plugin Add Fail
- Cannot find InvalidCastException in C# Application
- generating C# code file during Visual Studio build
- Can I deploy multiple instances of my application on the same windows phone?
- Close the Solution Explorer window
- How to generate entity framework code-first migrations without using the package manager console?
- Implementing callback function for dialog-based application
- VB.net: How to make original variable value fulfill 2 statements?
- DLL being marked as DELETEPENDING
- String tokenizing in Visual Studio C++
- How to use "Multicharts Studies" in Visual Studio 2013?
- Programs Will Not Run In Visual Studio
- VB.Net: Display total when check boxes are checked
Related Questions in GIT-FLOW
- Bash and Git Flow bug in common file
- Feature branch with or without fast-forward merge?
- Should git-flow branches be available on bare repository and its clone?
- Git: Unable to remove a "revert' commit
- Git-flow hotfix merging to develop being ahead produces XX commits ahead
- Git-Flow and dependencies
- What is best practice for updating feature branches to a new base?
- How to handle merging of branches that are not in a sequence in combination with Flyway
- Gitflow: Should I squash commits when merging from a release branch into master?
- Understanding git flow process
- Git workflow for a new dev project
- How can QA test multiple features at once with feature branching in Gitflow workflow?
- What's a good way to compile client facing release notes for a git-flow managed software project?
- SourceTree and Git Flow repository init
- Git flow: Best practice for dealing with minor releases
Related Questions in JGITFLOW-MAVEN-PLUGIN
- Error in `mvn jgitflow:release-finish` mutli-module build (due to wrong compilation order)
- How can I debug a third party mvn plugin during goal execution?
- activate a profile which is in a different pom when building from the project parent pom
- jgitflow-maven-plugin always produces merge conflict
- I get "Please tell me who you are..." error while running gitflow command with ssh-agent defined in Jenkinsfile
- How do I configure Nexus Sonatype to proxy maven-jgitflow-plugin
- JGitFlow maven plugin doesn't push release branch to remote
- Need Example of JGit to push code files to git server
- JGitflow triggers concourse job infinitely
- Personalise jgitflow maven plugin
- How to fix an UnknownHostKey error when using the Maven jgitflow plugin?
- jgitflow:release-finish is not deleting the release branch
- jgitflow and pull request
- mvn jgitflow:release-finish is merging release --> master --> develop
- Activate profile when finishing release using jgitflow Maven plugin?
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 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.