Re: git-commit: allow From: line to be entered in commit message
- From
- Artem Khodush <greenkaa@gmail.com>
- Date
- Jan 13, 2006, 11:11 UTC
- Message-ID
- <40b2b7d90601130311v78db741dx7c5eaa57ad300850@mail.gmail.com>
- In-Reply-To
- <BAYC1-PASMTP01A07DAA61F181E9D9679EAE260@CEZ.ICE>
> $ 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.