I've created some new project using git-flow
. Basically, I've done some coding, then I wrote those exact git
commands:
git flow init (and a bunch of enters)
git remote add origin <my_repo_address>
git flow feature start Argparsing
git add .
git commit -m "<message1>"
git rm tests/*
git commit -m "deleted unused stuff"
git flow feature publish
Well, I would suppose to see two commits laying on my feature/Argparsing
branch. I go over to my remote repository on GitHub
and I see this:
So in the second commit message, I added Initial commit
to stress the point that it was the first commit I made. But well, I guess I didn't have to do that since git-flow
firstly added a separate Initial commit for me.
And as you can see, the commit is empty:
So my question here is: I guess it is a desirable behavior, so then does it only happen, when I actually start the repo with a feature or is it always like this? And by the way: What is a proper way to initialize git-flow
repo? I mean, after git flow init
should I commit (and probably push) something onto develop
or master
or should I should continue working on my feature, and then merge to develop
, and then someday to master
?