Skip to content

Instantly share code, notes, and snippets.

@mikeumus
Last active August 31, 2018 15:43
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 mikeumus/69840abd5b86a3d89fceb6edf86676cf to your computer and use it in GitHub Desktop.
Save mikeumus/69840abd5b86a3d89fceb6edf86676cf to your computer and use it in GitHub Desktop.
A script to run on new mahcines to setup git aliases - http://bit.ly/git-me
#!/bin/bash
# Run this script like this:
# curl http://bit.ly/git-me | sh
cat > ~/.gitconfig <<EOF
[user]
name = mikeumus
email = mikeumus@gmail.com
[alias]
co = checkout
ci = commit
st = status
br = branch
a = add
pl = pull
mg = merge
ps = push
EOF
@mikeumus
Copy link
Author

mikeumus commented Nov 6, 2017

newline errors when trying curl http://bit.ly/git-me | sh
Better to wget this file down (wget bit.ly/git-me2 --output-document gitMe.sh) to the desired machine and then run it there: bash gitMe.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment