doc: west: Add mention about Git rewrite feature

Add Git rewrite feature mention, which can simplify handling of HTTPS
URLs.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
Andrei Emeltchenko 2022-03-22 17:15:48 +02:00 committed by Marti Bolivar
commit 4bdaffdf54

View file

@ -98,6 +98,13 @@ in plain text even if two-factor authentication is disabled.)
If you don't want to store any credentials on the file system, you can store
them in memory temporarily using `git-credential-cache`_ instead.
If you setup fetching via SSH, you can use Git URL rewrite feature. The following
command instructs Git to use SSH URLs for GitHub instead of HTTPS ones:
.. code-block:: shell
git config --global url."git@github.com:".insteadOf "https://github.com/"
.. _git-credential-store:
https://git-scm.com/docs/git-credential-store#_examples
.. _git-credential-cache: