Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 220f0db

Browse files
rctaypkozlowski-opensource
authored andcommitted
docs(contribute): improve git instructions
1 parent 899f5d1 commit 220f0db

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

docs/content/misc/contribute.ngdoc

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

258258

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

261-
git branch my-fix-branch
261+
git checkout -b my-fix-branch master
262262

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

265-
git checkout my-fix-branch
266-
267-
4. Create your patch, make sure to have plenty of tests (that pass).
268-
269-
5. Commit your changes and create a descriptive commit message (the commit message is used to generate release notes,
265+
4. Commit your changes and create a descriptive commit message (the commit message is used to generate release notes,
270266
please check out our
271267
[commit message conventions](https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/edit#)
272268
and our commit message presubmit hook `validate-commit-msg.js`):
273269

274270
git commit -a
275271

276-
6. Push your branch to Github:
272+
5. Push your branch to Github:
277273

278274
git push origin my-fix-branch
279275

280-
7. In Github, send a pull request to `angular:master`.
276+
6. In Github, send a pull request to `angular:master`.
281277

282278

283-
8. When the patch is reviewed and merged, delete your branch and pull yours — and other — changes
279+
7. When the patch is reviewed and merged, delete your branch and pull yours — and other — changes
284280
from the main (upstream) repository:
285281

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

0 commit comments

Comments
 (0)