Changes between Version 12 and Version 13 of StartModMaint
- Timestamp:
- Dec 9, 2013, 8:46:27 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
StartModMaint
v12 v13 83 83 === Fix a bug using a bug-fix branch === 84 84 85 Fixing a bug directly on the {{{develop}}} branch is fine, if that's the policy for the library, but if the bug is messy, multiple maintainers are involved, interruptions are expected, or other complexities are present, then it is better practice to work on the bug in a separate bug-fix branch.85 Fixing a bug directly on the {{{develop}}} branch is fine, if that's the library's policy, but if the bug is messy, multiple maintainers are involved, interruptions are expected, or other complexities are present, then it is better practice to work on the bug in a separate bug-fix branch. 86 86 87 87 {{{ 88 git checkout bugfix/complex-boo-boo88 git checkout -b bugfix/complex-boo-boo 89 89 }}} 90 90 91 This creates the branch {{{bugfix/complex-boo-boo}}}, and switches to it. Incidentally, "bugfix/" is part of the name, not a directory specifier. Because we were on branch {{{develop}}}, {{{develop}}} is what the new branch is based on. Since the bug is complex, it may take some time to fix, and the developer might go through several cycles of fixes, tests, and commits.91 This creates the branch {{{bugfix/complex-boo-boo}}}, and switches to it. Incidentally, {{{bugfix/}}} is part of the name, not a directory specifier. The new branch is based on branch {{{develop}}} because the working copy was on branch {{{develop}}} at the time of the branch. 92 92 93 So far, {{{bugfix/complex-boo-boo}}} is a private branch since it has not been pushed up to the public GitHub repo. To share work-in-progress with others or to create backup: 93 Since the bug is complex, it may take some time to fix and may go through several cycles of fixes, tests, and commits. 94 95 So far, {{{bugfix/complex-boo-boo}}} is a private branch since it has not been pushed up to the public GitHub repo. To share work-in-progress with others, to create backup, or for any other reason make the branch public, just push it: 94 96 95 97 {{{