* [PATCH User manual-Added advice on proxies and autocrlf]
@ 2008-06-11 19:48 John Yesberg
2008-06-11 19:58 ` J. Bruce Fields
0 siblings, 1 reply; 2+ messages in thread
From: John Yesberg @ 2008-06-11 19:48 UTC (permalink / raw)
To: git; +Cc: bfields
---
Documentation/user-manual.txt | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt
index bfde507..02b1be0 100644
--- a/Documentation/user-manual.txt
+++ b/Documentation/user-manual.txt
@@ -56,6 +56,16 @@ $ git clone
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
The initial clone may be time-consuming for a large project, but you
will only need to clone once.
+If there is a proxy between you and the repository you want to clone, you
+may not be able to use the git protocol. But you can use the http protocol, by
+configuring the proxy. Note that the address to access the repository via http
+may be different from the git address:
+
+------------------------------------------------
+$ export http_proxy=http://theproxy.example.com:8080
+$ git clone http://www.kernel.org/pub/scm/git/git.git
+------------------------------------------------
+
The clone command creates a new directory named after the project ("git"
or "linux-2.6" in the examples above). After you cd into this
directory, you will see that it contains a copy of the project files,
@@ -129,6 +139,19 @@ $ git branch
* new
------------------------------------------------
+It is possible, particularly on Windows platforms, that as you checkout
+the original version, it will in fact be modified, by the autocrlf process.
+(Windows and Unix store newlines as CRLF and LF respectively, and autocrlf
+tries to adapt intelligently.) If the checked out version is modified, then
+trying to switch to a new branch will not work, because then the uncommitted
+changes would be lost. So you may need to add the +-f+ flag to _force_ these
+changes to be thrown away. Another option might be to edit +~/.gitconfig+ or
+use the following command to disable the autocrlf function.
+
+------------------------------------------------
++git config --global core.autocrlf false
+------------------------------------------------
+
If you decide that you'd rather see version 2.6.17, you can modify
the current branch to point at v2.6.17 instead, with
--
1.5.5.1015.g9d258
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH User manual-Added advice on proxies and autocrlf]
2008-06-11 19:48 [PATCH User manual-Added advice on proxies and autocrlf] John Yesberg
@ 2008-06-11 19:58 ` J. Bruce Fields
0 siblings, 0 replies; 2+ messages in thread
From: J. Bruce Fields @ 2008-06-11 19:58 UTC (permalink / raw)
To: John Yesberg; +Cc: git
On Wed, Jun 11, 2008 at 08:48:47PM +0100, John Yesberg wrote:
> ---
> Documentation/user-manual.txt | 23 +++++++++++++++++++++++
> 1 files changed, 23 insertions(+), 0 deletions(-)
Thanks!
>
> diff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt
> index bfde507..02b1be0 100644
> --- a/Documentation/user-manual.txt
> +++ b/Documentation/user-manual.txt
> @@ -56,6 +56,16 @@ $ git clone
> git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
> The initial clone may be time-consuming for a large project, but you
> will only need to clone once.
>
> +If there is a proxy between you and the repository you want to clone, you
> +may not be able to use the git protocol. But you can use the http protocol, by
> +configuring the proxy. Note that the address to access the repository via http
> +may be different from the git address:
> +
> +------------------------------------------------
> +$ export http_proxy=http://theproxy.example.com:8080
> +$ git clone http://www.kernel.org/pub/scm/git/git.git
> +------------------------------------------------
> +
Especially this early in the manual, I really want to keep the text
short--we need to get to the basics as quickly as possible--even if that
means leaving out some corner cases.
What actually happens when you run across this case as a user? Are
there any improvements to the error reporting from "clone" that would
lead the user to the right solution without needing to deal with this
case here?
> The clone command creates a new directory named after the project ("git"
> or "linux-2.6" in the examples above). After you cd into this
> directory, you will see that it contains a copy of the project files,
> @@ -129,6 +139,19 @@ $ git branch
> * new
> ------------------------------------------------
>
> +It is possible, particularly on Windows platforms, that as you checkout
> +the original version, it will in fact be modified, by the autocrlf process.
> +(Windows and Unix store newlines as CRLF and LF respectively, and autocrlf
> +tries to adapt intelligently.) If the checked out version is modified, then
> +trying to switch to a new branch will not work, because then the uncommitted
> +changes would be lost. So you may need to add the +-f+ flag to _force_ these
> +changes to be thrown away. Another option might be to edit +~/.gitconfig+ or
> +use the following command to disable the autocrlf function.
> +
> +------------------------------------------------
> ++git config --global core.autocrlf false
> +------------------------------------------------
> +
Again, I'd rather not deal with this case in the main text; if we
absolutely need to, a quick reference to the appropriate documentation
("note: if you see an error like XXX, see the XXX man page...") might be
the thing to do.
--b.
> If you decide that you'd rather see version 2.6.17, you can modify
> the current branch to point at v2.6.17 instead, with
>
> --
> 1.5.5.1015.g9d258
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-06-11 19:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-11 19:48 [PATCH User manual-Added advice on proxies and autocrlf] John Yesberg
2008-06-11 19:58 ` J. Bruce Fields
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 NNTP newsgroup(s).