* Correct git config command syntax
@ 2020-01-14 23:44 Joseph Myers
2020-01-15 15:33 ` Use canonical command to set remote URL Andreas Schwab
0 siblings, 1 reply; 2+ messages in thread
From: Joseph Myers @ 2020-01-14 23:44 UTC (permalink / raw)
To: gcc-patches
There is no --set option, git config sets variables without such an
option.
Committed.
diff --git a/htdocs/gitwrite.html b/htdocs/gitwrite.html
index 85a0da2d..f420fe22 100644
--- a/htdocs/gitwrite.html
+++ b/htdocs/gitwrite.html
@@ -78,7 +78,7 @@ git clone git+ssh://<i>username</i>@gcc.gnu.org/git/gcc.git gcc
using <code>git config</code>:</p>
<blockquote><p><code>
-git config --set remote.origin.url git+ssh://<i>username</i>@gcc.gnu.org/git/gcc.git
+git config remote.origin.url git+ssh://<i>username</i>@gcc.gnu.org/git/gcc.git
</code></p></blockquote>
<p>To avoid the nuisance of having to supply your passphrase for each
--
Joseph S. Myers
joseph@codesourcery.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Use canonical command to set remote URL
2020-01-14 23:44 Correct git config command syntax Joseph Myers
@ 2020-01-15 15:33 ` Andreas Schwab
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Schwab @ 2020-01-15 15:33 UTC (permalink / raw)
To: Joseph Myers; +Cc: gcc-patches
On Jan 14 2020, Joseph Myers wrote:
> diff --git a/htdocs/gitwrite.html b/htdocs/gitwrite.html
> index 85a0da2d..f420fe22 100644
> --- a/htdocs/gitwrite.html
> +++ b/htdocs/gitwrite.html
> @@ -78,7 +78,7 @@ git clone git+ssh://<i>username</i>@gcc.gnu.org/git/gcc.git gcc
> using <code>git config</code>:</p>
>
> <blockquote><p><code>
> -git config --set remote.origin.url git+ssh://<i>username</i>@gcc.gnu.org/git/gcc.git
> +git config remote.origin.url git+ssh://<i>username</i>@gcc.gnu.org/git/gcc.git
The canonical way is to use git remote.
Andreas.
diff --git a/htdocs/gitwrite.html b/htdocs/gitwrite.html
index 3cda6a46..87a18fa7 100644
--- a/htdocs/gitwrite.html
+++ b/htdocs/gitwrite.html
@@ -71,10 +71,10 @@ git clone git+ssh://<i>username</i>@gcc.gnu.org/git/gcc.git gcc
<p>where <i>username</i> is your user name at gcc.gnu.org.</p>
<p>It is also possible to convert an existing Git tree to use SSH by
-using <code>git config</code>:</p>
+using <code>git remote</code>:</p>
<blockquote><p><code>
-git config remote.origin.url git+ssh://<i>username</i>@gcc.gnu.org/git/gcc.git
+git remote set-url origin git+ssh://<i>username</i>@gcc.gnu.org/git/gcc.git
</code></p></blockquote>
<p>To avoid the nuisance of having to supply your passphrase for each
--
2.25.0
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-01-15 15:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-14 23:44 Correct git config command syntax Joseph Myers
2020-01-15 15:33 ` Use canonical command to set remote URL Andreas Schwab
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).