From: Artem Khodush Date: Fri, 13 Jan 2006 11:11:33 GMT Subject: Re: git-commit: allow From: line to be entered in commit message Message-ID: <40b2b7d90601130311v78db741dx7c5eaa57ad300850@mail.gmail.com> In-Reply-To: > $ export GIT_AUTHOR_NAME="$author" > $ GIT_AUTHOR_EMAIL="$email" git commit -F .msgfile > Which is cumbersome and also ends up destroying your defaults if you happen > to use that method, so afterward you have to unset them or reset them back > to your own author info. Hello, I had a similar problem on cygwin. I agree that setting environment variables by hand is cumbersome, and modifying global environment is undesirable. I ended up with writing shell script, named git-env.sh, that sets all variables requred for git to work, and got used to habit of typing . git-env.sh every time I intend to do some work in git. When that environment is not needed any more, I just close that particular shell window. hope this helps, Artem.