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:
parent
be3186d39c
commit
4bdaffdf54
1 changed files with 7 additions and 0 deletions
|
@ -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
|
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.
|
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:
|
.. _git-credential-store:
|
||||||
https://git-scm.com/docs/git-credential-store#_examples
|
https://git-scm.com/docs/git-credential-store#_examples
|
||||||
.. _git-credential-cache:
|
.. _git-credential-cache:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue