Skip to content

Commit 2471f6b

Browse files
rctaypkozlowski-opensource
authored andcommitted
docs(contribute): improve git instructions
1 parent 1fefafd commit 2471f6b

1 file changed

Lines changed: 7 additions & 11 deletions

File tree

docs/content/misc/contribute.ngdoc

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -247,31 +247,27 @@ To create and submit a change:
247247
[print, sign and one of scan+email, fax or mail the form](http://code.google.com/legal/corporate-cla-v1.0.html).
248248

249249

250-
2. Create a new branch off the master for your changes:
250+
2. Create and checkout a new branch off the master branch for your changes:
251251

252-
git branch my-fix-branch
252+
git checkout -b my-fix-branch master
253253

254-
3. Check out the branch:
254+
3. Create your patch, make sure to have plenty of tests (that pass).
255255

256-
git checkout my-fix-branch
257-
258-
4. Create your patch, make sure to have plenty of tests (that pass).
259-
260-
5. Commit your changes and create a descriptive commit message (the commit message is used to generate release notes,
256+
4. Commit your changes and create a descriptive commit message (the commit message is used to generate release notes,
261257
please check out our
262258
[commit message conventions](https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/edit#)
263259
and our commit message presubmit hook `validate-commit-msg.js`):
264260

265261
git commit -a
266262

267-
6. Push your branch to Github:
263+
5. Push your branch to Github:
268264

269265
git push origin my-fix-branch
270266

271-
7. In Github, send a pull request to `angular:master`.
267+
6. In Github, send a pull request to `angular:master`.
272268

273269

274-
8. When the patch is reviewed and merged, delete your branch and pull yours — and other — changes
270+
7. When the patch is reviewed and merged, delete your branch and pull yours — and other — changes
275271
from the main (upstream) repository:
276272

277273
1. To delete the branch in Github, run:

0 commit comments

Comments
 (0)