Created
August 25, 2017 20:05
-
-
Save andremleblanc/debb44c6347feb14780e089ceabd0466 to your computer and use it in GitHub Desktop.
git clone with author information
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function gclone() { | |
git clone $1 | |
repo=$(basename $1) | |
directory=${repo%.*} | |
cd $directory | |
git config user.email "[email protected]" | |
git config user.name "First Last" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment