* Challenge with Git-Bash
@ 2010-07-17 16:20 Rainer Lauer
2010-07-17 16:36 ` Ævar Arnfjörð Bjarmason
2010-07-17 17:13 ` Jonathan Nieder
0 siblings, 2 replies; 9+ messages in thread
From: Rainer Lauer @ 2010-07-17 16:20 UTC (permalink / raw)
To: 'Rainer Lauer', git
Hello,
with my Windows 7 Git-Installation I get following challenge:
1) Set GIT_EDITOR to editor of your choice
2) With Windows7 let this editor run in admin-mode
Goto .exe-file -> right mouse-click -> compatibility -> run program
as admin (I'm running a German version maybe English names are slightly
different)
3) Make a git action like git add file
git commit
from the git bash.
4) Now following message appears: sh.exe: ./"editor of your choice":
Bad file number
Everything is fine without Admin-Mode set for editor. In other words if you
get rid of step 2) step 4) doesn't appear instead the editor starts.
Due to other tasks my editor of choice has to run in this mode - stupid
enough.
Any chance to get around this problem?
(No not taking a different editor, no not getting rid of admin mode :) )
Reggies,
Rainer Lauer
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Challenge with Git-Bash
2010-07-17 16:20 Challenge with Git-Bash Rainer Lauer
@ 2010-07-17 16:36 ` Ævar Arnfjörð Bjarmason
[not found] ` <007d01cb2687$62100a90$26301fb0$@gmx.net>
2010-07-17 17:13 ` Jonathan Nieder
1 sibling, 1 reply; 9+ messages in thread
From: Ævar Arnfjörð Bjarmason @ 2010-07-17 16:36 UTC (permalink / raw)
To: Rainer Lauer; +Cc: git
On Sat, Jul 17, 2010 at 16:20, Rainer Lauer <lauerr@gmx.net> wrote:
> Hello,
> with my Windows 7 Git-Installation I get following challenge:
> 1) Set GIT_EDITOR to editor of your choice
> 2) With Windows7 let this editor run in admin-mode
> Goto .exe-file -> right mouse-click -> compatibility -> run program
> as admin (I'm running a German version maybe English names are slightly
> different)
> 3) Make a git action like git add file
> git commit
> from the git bash.
> 4) Now following message appears: sh.exe: ./"editor of your choice":
> Bad file number
> Everything is fine without Admin-Mode set for editor. In other words if you
> get rid of step 2) step 4) doesn't appear instead the editor starts.
> Due to other tasks my editor of choice has to run in this mode - stupid
> enough.
>
> Any chance to get around this problem?
> (No not taking a different editor, no not getting rid of admin mode :) )
Did you actually set "GIT_EDITOR" to the string "editor of your
choice", as opposed to the full path to Emacs, notepad or something
like that?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Challenge with Git-Bash
2010-07-17 16:20 Challenge with Git-Bash Rainer Lauer
2010-07-17 16:36 ` Ævar Arnfjörð Bjarmason
@ 2010-07-17 17:13 ` Jonathan Nieder
2010-07-18 18:08 ` AW: " Rainer Lauer
1 sibling, 1 reply; 9+ messages in thread
From: Jonathan Nieder @ 2010-07-17 17:13 UTC (permalink / raw)
To: Rainer Lauer; +Cc: git, msysgit
(+cc: msysgit)
Hi Rainer,
Rainer Lauer wrote:
> with my Windows 7 Git-Installation I get following challenge:
>
> 1) Set GIT_EDITOR to editor of your choice
>
> 2) With Windows7 let this editor run in admin-mode
> Goto .exe-file -> right mouse-click -> compatibility -> run program
> as admin (I'm running a German version maybe English names are slightly
> different)
>
> 3) Make a git action like git add file
> git commit
> from the git bash.
>
> 4) Now following message appears: sh.exe: ./"editor of your choice":
> Bad file number
>
> Everything is fine without Admin-Mode set for editor.
Apparently “Bad file number” can mean “Permission denied” among other
things on Windows. I do not have any better suggestion than to try
running git bash as administrator too, sorry.
Regards,
Jonathan
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Challenge with Git-Bash
[not found] ` <007d01cb2687$62100a90$26301fb0$@gmx.net>
@ 2010-07-18 14:55 ` Ævar Arnfjörð Bjarmason
2010-07-18 17:02 ` AW: " Rainer Lauer
0 siblings, 1 reply; 9+ messages in thread
From: Ævar Arnfjörð Bjarmason @ 2010-07-18 14:55 UTC (permalink / raw)
To: Rainer Lauer; +Cc: Git Mailing List
On Sun, Jul 18, 2010 at 14:42, Rainer Lauer <lauerr@gmx.net> wrote:
> Hi,
> thanks for the reply. I did set the full path to my editor of choice.
Good that it worked out. CC-ing the list so that others encountering
this problem will find the solution.
^ permalink raw reply [flat|nested] 9+ messages in thread
* AW: Challenge with Git-Bash
2010-07-18 14:55 ` Ævar Arnfjörð Bjarmason
@ 2010-07-18 17:02 ` Rainer Lauer
0 siblings, 0 replies; 9+ messages in thread
From: Rainer Lauer @ 2010-07-18 17:02 UTC (permalink / raw)
To: 'Ævar Arnfjörð Bjarmason'
Cc: 'Git Mailing List'
[-- Attachment #1: Type: text/plain, Size: 655 bytes --]
Hi,
from Jonathan Nieder <jrnieder@gmail.com> I got a successfully work-around. See attached mail.
Thanks for your support and amazingly fast response.
Regis,
Rainer Lauer
-----Ursprüngliche Nachricht-----
Von: Ævar Arnfjörð Bjarmason [mailto:avarab@gmail.com]
Gesendet: Sonntag, 18. Juli 2010 16:56
An: Rainer Lauer
Cc: Git Mailing List
Betreff: Re: Challenge with Git-Bash
On Sun, Jul 18, 2010 at 14:42, Rainer Lauer <lauerr@gmx.net> wrote:
> Hi,
> thanks for the reply. I did set the full path to my editor of choice.
Good that it worked out. CC-ing the list so that others encountering this problem will find the solution.
[-- Attachment #2: Type: message/rfc822, Size: 2412 bytes --]
From: "Jonathan Nieder" <jrnieder@gmail.com>
To: "Rainer Lauer" <lauerr@gmx.net>
Cc: <git@vger.kernel.org>, <msysgit@googlegroups.com>
Subject: Re: Challenge with Git-Bash
Date: Sat, 17 Jul 2010 19:13:03 +0200
Message-ID: <20100717171303.GB10730@burratino>
(+cc: msysgit)
Hi Rainer,
Rainer Lauer wrote:
> with my Windows 7 Git-Installation I get following challenge:
>
> 1) Set GIT_EDITOR to editor of your choice
>
> 2) With Windows7 let this editor run in admin-mode
> Goto .exe-file -> right mouse-click -> compatibility -> run program
> as admin (I'm running a German version maybe English names are slightly
> different)
>
> 3) Make a git action like git add file
> git commit
> from the git bash.
>
> 4) Now following message appears: sh.exe: ./"editor of your choice":
> Bad file number
>
> Everything is fine without Admin-Mode set for editor.
Apparently “Bad file number” can mean “Permission denied” among other
things on Windows. I do not have any better suggestion than to try
running git bash as administrator too, sorry.
Regards,
Jonathan
^ permalink raw reply [flat|nested] 9+ messages in thread
* AW: Challenge with Git-Bash
2010-07-17 17:13 ` Jonathan Nieder
@ 2010-07-18 18:08 ` Rainer Lauer
2010-07-18 18:11 ` Ævar Arnfjörð Bjarmason
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Rainer Lauer @ 2010-07-18 18:08 UTC (permalink / raw)
To: 'Jonathan Nieder'; +Cc: git, msysgit
Hi Jonathan,
thanks for this hint. Now it is working on the base of environment variables.
In order of automatically setting up my projects I'd like to use the configuration file for preparing CVS-work instead introducing environment variables.
Unfortunately, I'm facing another problem.
Following commands don't modify .git/config coming along with my project(s).
git config user.name="Rainer Lauer"
git config user.email="Rainer.Lauer@gmx.net"
git config core.editor="c:/Program Files/SlickEditV14.0.2/win/vs.exe"
The file seems to stay in initial revision as created with the command git init.
Where is following information stored? Command: git config --global user.name="Rainer Lauer". Did I get the documentation right that this is a definition for all projects?
Regards,
Rainer
-----Ursprüngliche Nachricht-----
Von: Jonathan Nieder [mailto:jrnieder@gmail.com]
Gesendet: Samstag, 17. Juli 2010 19:13
An: Rainer Lauer
Cc: git@vger.kernel.org; msysgit@googlegroups.com
Betreff: Re: Challenge with Git-Bash
(+cc: msysgit)
Hi Rainer,
Rainer Lauer wrote:
> with my Windows 7 Git-Installation I get following challenge:
>
> 1) Set GIT_EDITOR to editor of your choice
>
> 2) With Windows7 let this editor run in admin-mode
> Goto .exe-file -> right mouse-click -> compatibility -> run program
> as admin (I'm running a German version maybe English names are slightly
> different)
>
> 3) Make a git action like git add file
> git commit
> from the git bash.
>
> 4) Now following message appears: sh.exe: ./"editor of your choice":
> Bad file number
>
> Everything is fine without Admin-Mode set for editor.
Apparently “Bad file number” can mean “Permission denied” among other things on Windows. I do not have any better suggestion than to try running git bash as administrator too, sorry.
Regards,
Jonathan
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Challenge with Git-Bash
2010-07-18 18:08 ` AW: " Rainer Lauer
@ 2010-07-18 18:11 ` Ævar Arnfjörð Bjarmason
2010-07-18 18:16 ` Files used by git config (Re: Challenge with Git-Bash) Jonathan Nieder
2010-07-19 18:09 ` AW: Challenge with Git-Bash Eric Raible
2 siblings, 0 replies; 9+ messages in thread
From: Ævar Arnfjörð Bjarmason @ 2010-07-18 18:11 UTC (permalink / raw)
To: Rainer Lauer; +Cc: Jonathan Nieder, git, msysgit
On Sun, Jul 18, 2010 at 18:08, Rainer Lauer <lauerr@gmx.net> wrote:
> Hi Jonathan,
> thanks for this hint. Now it is working on the base of environment variables.
>
> In order of automatically setting up my projects I'd like to use the configuration file for preparing CVS-work instead introducing environment variables.
> Unfortunately, I'm facing another problem.
> Following commands don't modify .git/config coming along with my project(s).
> git config user.name="Rainer Lauer"
> git config user.email="Rainer.Lauer@gmx.net"
> git config core.editor="c:/Program Files/SlickEditV14.0.2/win/vs.exe"
> The file seems to stay in initial revision as created with the command git init.
>
> Where is following information stored? Command: git config --global user.name="Rainer Lauer". Did I get the documentation right that this is a definition for all projects?
If you're asking why your .git/config file isn't being carried over
when you clone the repository that's because it's not supposed to, Git
doesn't work like that.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Files used by git config (Re: Challenge with Git-Bash)
2010-07-18 18:08 ` AW: " Rainer Lauer
2010-07-18 18:11 ` Ævar Arnfjörð Bjarmason
@ 2010-07-18 18:16 ` Jonathan Nieder
2010-07-19 18:09 ` AW: Challenge with Git-Bash Eric Raible
2 siblings, 0 replies; 9+ messages in thread
From: Jonathan Nieder @ 2010-07-18 18:16 UTC (permalink / raw)
To: Rainer Lauer; +Cc: git, msysgit, Ævar Arnfjörð Bjarmason
Hi again,
Rainer Lauer wrote:
> Where is following information stored?
> Command: git config --global user.name="Rainer Lauer".
I recommend looking that the user manual[1] to start out. It
has a few relevant hints.
From the preface:
Comprehensive reference documentation is available
through the man pages, or git-help(1) command. For
example, for the command "git clone <repo>", you can
either use:
$ man git-clone
or:
$ git help clone
From the start to “chapter 3: developing with git”:
Before creating any commits, you should introduce
yourself to git. The easiest way to do so is to make sure
the following lines appear in a file named .gitconfig in
your home directory:
[user]
name = Your Name Comes Here
email = you@yourdomain.example.com
(See the "CONFIGURATION FILE" section of git-config(1)
for details on the configuration file.)
Regards,
Jonathan
[1] http://kernel.org/pub/software/scm/git/docs/user-manual.html
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: AW: Challenge with Git-Bash
2010-07-18 18:08 ` AW: " Rainer Lauer
2010-07-18 18:11 ` Ævar Arnfjörð Bjarmason
2010-07-18 18:16 ` Files used by git config (Re: Challenge with Git-Bash) Jonathan Nieder
@ 2010-07-19 18:09 ` Eric Raible
2 siblings, 0 replies; 9+ messages in thread
From: Eric Raible @ 2010-07-19 18:09 UTC (permalink / raw)
To: git
Rainer Lauer <lauerr <at> gmx.net> writes:
> Where is following information stored? Command: git config --global
user.name="Rainer Lauer".
The '=' appears in your config file (.git/config), but shouldn't be used
on the comand line.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2010-07-19 18:09 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-17 16:20 Challenge with Git-Bash Rainer Lauer
2010-07-17 16:36 ` Ævar Arnfjörð Bjarmason
[not found] ` <007d01cb2687$62100a90$26301fb0$@gmx.net>
2010-07-18 14:55 ` Ævar Arnfjörð Bjarmason
2010-07-18 17:02 ` AW: " Rainer Lauer
2010-07-17 17:13 ` Jonathan Nieder
2010-07-18 18:08 ` AW: " Rainer Lauer
2010-07-18 18:11 ` Ævar Arnfjörð Bjarmason
2010-07-18 18:16 ` Files used by git config (Re: Challenge with Git-Bash) Jonathan Nieder
2010-07-19 18:09 ` AW: Challenge with Git-Bash Eric Raible
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).