Commit to develop branch directly in Git Flow?

I’m currently migrating a project to Git Flow and I’m really appreciated the flexibility it provides.

The problem is, in the following situations, may I working on and commit to a development branch directly?

  • a minor typo fix,
  • or a small method-level refactor,
  • or some errors fixes after a feature was merged.

I’ve read the creator’s post and there is no mention of this situation. What you guys doing in real world?

  • How to commit only modified (and not new or deleted) files?
  • Why would my local changes in Git be overwritten by checkout in this circumstance?
  • Moving master head to a branch
  • Using Mercurial locally, only with Subversion server
  • Coda 2 and github setup: cannot clone and connect to repository
  • Ignore files from git diff or git status using command shell
  • tortoisegit clone option is unavailable in right-click context menu
  • How to have a public and private branch with hidden files
  • 2 Solutions collect form web for “Commit to develop branch directly in Git Flow?”

    I think this is up to you. What we’ve done in our project is try and have everything on a branch and then when we are about to release, merge what we definitely want in the release back to develop. Then we create our release branch from develop. I say we have done everything on a branch but for typos and very minor fixes we dont tend to create a branch.

    Totally. The benefit of isolated feature branches in git flow is primarily for the people who requested them. As long as it is a code change that you are sure is ok to go into the next release, it can be made directly into develop. You don’t want to bog down your team with too many feature branches if you can help it.

    Git Baby is a git and github fan, let's start git clone.