Created
May 20, 2016 12:41
-
-
Save Markonis/df9969016061ffda6ff7a9ce1c1e493d to your computer and use it in GitHub Desktop.
This file contains 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
DEFAULT = { | |
name: 'Marko Pavlovic', | |
email: '[email protected]' | |
} | |
puts 'Enter authors names:' | |
names = gets | |
puts 'Enter authors emails:' | |
emails = gets | |
`git config user.name "#{names}"` | |
`git config user.email "#{emails}"` | |
puts 'Enter commit message:' | |
message = gets | |
`git commit -m "#{message}"` | |
puts 'Done, reverting back to default user' | |
`git config user.name "#{DEFAULT[:name]}"` | |
`git config user.email "#{DEFAULT[:email]}"` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment