Skip to content

Instantly share code, notes, and snippets.

@Jiggins
Last active October 27, 2015 17:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jiggins/081007c09d96afbc12bf to your computer and use it in GitHub Desktop.
Save Jiggins/081007c09d96afbc12bf to your computer and use it in GitHub Desktop.
#! /bin/bash
# For one line installation, use the command in the comment on the next line
# bash <(curl https://gist.githubusercontent.com/Jiggins/081007c09d96afbc12bf/raw/9a6132f4c5459e332bf53fc897d76163e5585d75/git-setup.sh)
echo -n "Enter your name: "
read -e NAME
echo -n "Enter your Student Number: "
read -e STUDENT_NUMBER
echo -n "Enter your email address: "
read -e EMAIL
git config --global user.name "${NAME} - ${STUDENT_NUMBER}"
git config --global user.email "${EMAIL}"
# Adding colour to git
git config --global color.branch always
git config --global color.diff always
git config --global color.interactive always
git config --global color.pager true
git config --global color.status always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment