git/list[1] front-page[2] threads[3] people[4] search[5] about
 

autocrlf and git manual

From
JYJohn Yesberg <john.yesberg@gmail.com>
Date
Jun 11, 2008, 11:53 UTC
Message-ID
<1033a22d0806110453h16782758i7318ef4fce434ba@mail.gmail.com>

Hi all. I'm just starting with git. Downloaded the msysgit 1.5.5 for windows, and tried to work through the manual from http://www.kernel.org/pub/software/scm/git/docs/user-manual.html.

The first step was to clone an existing repository. I had trouble because I'm behind a proxy. Is it worth putting a short section in the manual describing how the proxy should be set? In the Git Bash, I tried using $ git config --global http.proxy proxyname:port but it didn't work. So I tried $ git config --global http.proxy http://proxyname:port that didn't work. I tried $ export http_proxy=http://proxyname:port and this time it (the clone) did work.

Then, I went on to the second subsection of the manual, How to check out a different version of the project. The command $ git checkout -b new v0.2 failed with: error: Entry 'org.spearce.egit-feature/.settings/org.eclipse.core.runtime.prefs' not uptodate. Cannot merge.

After some searching, I found roughly what this message means. Noticing a suggestion elsewhere in the manual advice to try gitk, I discovered that there were "Local uncommitted changes, not checked into index" as suggested by the error. But I hadn't made any changes. I remembered the release notes from the installation procedure warning me of an autocrlf issue that had changed recently. The diff aspect of gitk didn't really demonstrate whether this was the issue, but I tried removing the repository, setting core.autocrlf false, and then cloning it again. This time, gitk didn't identify any local uncommitted changes, and creating a new branch worked. Perhaps it would be good if the manual could help windows newbies out by providing a hint here - otherwise they're likely to be discouraged away from git.

I didn't see any contact details in the manual or on the web site. I'd be happy to contribute text if that helps: Is there a markup language? Who is the editor?

Thanks,
John.
Next: Jakub Narebski
Message 1 of 2 in “autocrlf and git manual”
  1. John YesbergJun 11, 2008
  2. Jakub NarebskiJun 11, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.