Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8058185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:16:28+00:00 2026-06-05T09:16:28+00:00

I’ve been reading and re-reading the post about a successful git model ( git

  • 0

I’ve been reading and re-reading the post about a successful git model (git flow) and I’m confused about a couple things when working off a develop branch. He says:

When starting work on a new feature, branch off from the develop branch.

$ git checkout -b myfeature develop

  1. What branch is he starting in? My checked out ‘develop’ branch?
  2. Is the ‘develop’ after ‘myfeature’ track my local ‘develop’ branch or the remote ‘origin/develop’ branch?
  3. If I start in my ‘develop’ branch when I create ‘myfeature’ do I need the ‘develop’ at the end?
  4. Does ‘myfeature’ copy the current HEAD of the develop branch?
  5. If I only wanted to see my changes on a dev server, do I need to merge into my local develop or remote develop?

I’m trying to wrap my head around it – off to re-read it again and find some screencasts based on this model.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T09:16:30+00:00Added an answer on June 5, 2026 at 9:16 am
    1. Doesn’t matter, because he explicitly set the base commit (develop). After the command is run, he’ll be on the myfeature branch, regardless of what was checked out before.

    2. develop is a local branch that probably tracks origin/develop, your remote tracking branch.

    3. Nope. git checkout -b myfeature, without an explicit starting point, will create a new branch at your HEAD. If you’re at the tip of the develop branch, myfeature will be based on develop.

    4. Not exactly. myfeature references the same commit that the tip of develop references. Nothing is "copied". When you commit changes while myfeature is checked out, the myfeature tip will be updated to the new commits. develop will not change.

    5. If you want to see your changes at a remote location, you need to push to the remote location. Just merging into a local branch won’t do anything for the remote side.

      If you want to "finish" your feature, git-flow-style, I’m guessing you want the Incorporating a finished feature on develop section: Switch to develop, merge in myfeature, delete myfeature, and push the now-updated develop out to origin.

    [e] More answers:

    • If I branch from within develop, it’s the same as doing; git checkout -b myfeature develop when not in develop?

    The new branch starts from develop in both cases. (git branch works the same way, except it won’t switch you to the new branch like git checkout -b does.)

    • And to finish myfeature, I would checkout develop > git pull > git merge myfeature > git push origin (aka origin/develop)?

    Roughly, though git push origin is not always "aka origin/develop". By default git push origin will push all the local branches that have the same name (or have been set up to track) the branches on origin. (You can change the default with the push.default config setting.) git push origin develop will push just your local develop branch to origin’s develop branch, which is what you want.

    • If I don’t pull before the merge, I run the risk of overwriting new commits made by others, correct?

    Only if you force the push (which, seriously, don’t do that). You can do the pull after the merge, but then you’d essentially be merging twice. It works out better to do the pull first, but you’re not at risk of losing data if you don’t.

    • Is there ever a time when I would merge develop into myfeature?

    Sure, if someone else has pushed out updates to origin/develop and you want to incorporate their changes. Essentially, you would merge develop into myfeature if you want to keep your feature branch current and you’re not ready to merge into develop.

    • And does myfeature every get merged into a release branch or should it always go back into develop?

    In the git-flow system, myfeature should always go back to develop, and release branches always start from develop. develop is supposed to be the branch for changes ready for external exposure–for integration testing, release candidates, whatever–as well as the branch that represents the current state of development in the project. It’s the starting point for all the new stuff. You don’t want to end up with your work in the myfeature branch and some random release branch, but not the main develop line.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am reading a book about Javascript and jQuery and using one of the
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to create an if statement in PHP that prevents a single post
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.