Update docs: .netrc --> .gitcookies
Change-Id: Ic1d66a25fe74e33667ab71bcf0b346ac3a632257
diff --git a/docs/source/contributing.rst b/docs/source/contributing.rst
index 01217a2..b07e685 100644
--- a/docs/source/contributing.rst
+++ b/docs/source/contributing.rst
@@ -65,9 +65,8 @@
curl -o .git/hooks/commit-msg https://ceres-solver-review.googlesource.com/tools/hooks/commit-msg
chmod +x .git/hooks/commit-msg
-5. Configure your Gerrit password with a ``.netrc`` (Mac and Linux)
- or ``_netrc`` (Windows) which allows pushing to Gerrit without
- having to enter a very long random password every time:
+5. Configure your Gerrit password with a ``.gitcookies`` which allows pushing
+ to Gerrit without having to enter a very long random password every time:
* Sign into `http://ceres-solver-review.googlesource.com
<http://ceres-solver-review.googlesource.com>`_.
@@ -80,22 +79,11 @@
* Click ``Allow access`` when the page requests access to your
``git`` repositories.
- * Copy the contents of the ``netrc`` into the clipboard.
-
- - On Mac and Linux, paste the contents into ``~/.netrc``.
-
- - On Windows, by default users do not have a ``%HOME%``
- setting.
-
-
- Executing ``setx HOME %USERPROFILE%`` in a terminal will set up
- the ``%HOME%`` environment variable persistently, and is used
- by ``git`` to find ``%HOME%\_netrc``.
-
- Then, create a new text file named ``_netrc`` and put it in
- e.g. ``C:\Users\username`` where ``username`` is your user
- name.
-
+ * Follow the instructions from Gerrit to create a ``.gitcookies`` file on
+ your system, either in ``$HOME/.gitcookies`` (Mac and Linux) or
+ ``%USERPROFILE%\.gitcookies`` (Windows). Note that for Windows, please get
+ a recent `Git for Windows <https://git-scm.com/download/win>`_ install to
+ enable automatic lookup in the ``%USERPROFILE%\.gitcookies``.
Submitting a change
===================