mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Update docs: .netrc --> .gitcookies
Change-Id: Ic1d66a25fe74e33667ab71bcf0b346ac3a632257
This commit is contained in:
committed by
Sameer Agarwal
parent
c9abea1fa0
commit
aaae5c5f62
@@ -65,9 +65,8 @@ Setting up your Environment
|
||||
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 @@ Setting up your Environment
|
||||
* 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
|
||||
===================
|
||||
|
||||
Reference in New Issue
Block a user