Skip to content

Instantly share code, notes, and snippets.

@Markonis
Created May 20, 2016 12:41
Show Gist options
  • Save Markonis/df9969016061ffda6ff7a9ce1c1e493d to your computer and use it in GitHub Desktop.
Save Markonis/df9969016061ffda6ff7a9ce1c1e493d to your computer and use it in GitHub Desktop.
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