You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.markdown
+66
Original file line number
Diff line number
Diff line change
@@ -51,3 +51,69 @@ Even though this post isn't production ready, I'm going to make a release branch
51
51
When creating a release branch, it uses the current state of 'develop' branch as its base. You can make any further small commits to make it production ready, then you can run `git flow release finish 'v0.1'` to finish the release.
52
52
53
53
When the release is finished, the release branch will be merged to master.
Feature branches are where you'll do most of your work. This chapter is a feature branch. You make your changes, and commit to the branch, and when the branch is ready, it will be merged back into develop.
69
+
70
+
➜ Git-Flow-Example git:(feature/feature_example) ✗ git flow feature help
71
+
Branches 'develop' and 'origin/develop' have diverged.
72
+
And local branch 'develop' is ahead of 'origin/develop'.
73
+
Switched to a new branch 'feature/feature_example'
74
+
75
+
Summary of actions:
76
+
- A new branch 'feature/feature_example' was created, based on 'develop'
77
+
- You are now on branch 'feature/feature_example'
78
+
79
+
Now, start committing on your feature. When done, use:
80
+
81
+
git flow feature finish feature_example
82
+
83
+
There are quite a few options for git flow feature. You can find them buy running `git flow feature help`:
84
+
85
+
git flow feature help
86
+
usage: git flow feature [list] [-v]
87
+
git flow feature start [-F] <name> [<base>]
88
+
git flow feature finish [-rF] <name|nameprefix>
89
+
git flow feature publish <name>
90
+
git flow feature track <name>
91
+
git flow feature diff [<name|nameprefix>]
92
+
git flow feature rebase [-i] [<name|nameprefix>]
93
+
git flow feature checkout [<name|nameprefix>]
94
+
git flow feature pull <remote> [<name>]
95
+
96
+
If we push a feature branch to GitHub without releasing it(`git push origin feature/feature_example`), the network graph looks like this:
Once we release the feature by running `git flow feature finish feature_example`, the changes on the feature branch are merged back into the **develop** branch, but not the master branch.
0 commit comments