Last active
August 31, 2018 15:43
-
-
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
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
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
newline
errors when tryingcurl 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