Search code examples
gitgit-branchgit-flowgit-workflow

git-flow push non ready feature on remote git server


I use git flow methodology and i need advice on how to push non ready feature on remote git server.

By default we can do it in such way (If feature has finished)

git checkout -b feature develop
Do something...
git commit -am "Message"
git checkout develop
git merge --no-ff feature
git push origin develop
git push origin feature

What if my feature is not ready, but i want push it on remote server?

I have tried to do it in such way:

 git checkout -b feature develop
 Do something...
 git commit -am "Message"
 git push origin feature

But if i look at graphic scheme of commits it seems like develop and feature are the same branch (But of course they are not the same).


Solution

  • You can publish the feature:

    $ git flow feature publish <name_of_feature>
    

    Take a look at this git flow cheat sheet.