Skip to content

Instantly share code, notes, and snippets.

@sowawa
Created March 20, 2012 04:13
Show Gist options
  • Save sowawa/2131253 to your computer and use it in GitHub Desktop.
Save sowawa/2131253 to your computer and use it in GitHub Desktop.
Override .gitconfig variables
#!/bin/bash
export GIT_AUTHOR_EMAIL=hogehoge@example.com
export GIT_AUTHOR_NAME=sowasowa
cd /tmp
mkdir hoge
cd hoge
git init
touch README
git add .
git commit -m 'hogehoge'
# Author: sowasowa <hogehoge@example.com>
# 0 files changed, 0 insertions(+), 0 deletions(-)
# create mode 100644 README
cd ../
rm -rf hoge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment