Git 流程:我可以在完成某个功能之前多次发布该功能吗?

Git flow: Can I publish a feature more than once before I finish the feature?

我开始使用 git 流。我创建了一个功能:

git flow feature start eval

然后我做了一些工作并添加并提交了更改:

git add (files)
git commit -m "(description of commit)"

我还没有完成该功能,但想将其推送到外部存储库以备过夜:

git flow feature publish eval

好的,目前没问题。现在我又开始工作了,我想将一些新的更改推送到外部存储库,但我仍在研究该功能。但是当我 运行

git add (new files)
git commit -m "(description 2)"
git flow feature publish eval

它returns

Branch 'origin/feature/eval' already exists. Pick another name.

但是我的分支是feature/eval,所以如果我将另一个分支名称传递给git flow feature publish <name>,它会抛出错误。

总而言之,我的问题是——当我正在(尚未准备好完成)一项功能时,如何推送多个提交?我可以 运行 类似 git push origin feature/eval 的东西吗?

git-flow 扩展检查分支名称 doesn't already exist to prevent you or someone else from accidentally overwriting it. It also configures your branch 以跟踪您刚刚 publish 编辑的远程分支,因此您现在可以 git push 只要有更多变化。