Skip to content

Instantly share code, notes, and snippets.

@dillonhafer
Created August 9, 2018 17:03
Show Gist options
  • Save dillonhafer/db9c9b2dcecb811c0091ac245e1cc4c6 to your computer and use it in GitHub Desktop.
Save dillonhafer/db9c9b2dcecb811c0091ac245e1cc4c6 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Get file name
dirname=${PWD##*/}
rcfile="$HOME/.coauthor.$dirname"
# Create co author file
touch $rcfile
cat > $rcfile <<COAUTHOR
Co-authored-by: Dillon Hafer <dillon@hashrocket.com>
COAUTHOR
# Configure git
git config user.name "Hashrocket Workstation"
git config user.email "dev@hashrocket.com"
git config commit.template $rcfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment