Cool! I prefer the Planter script as a solution.
This is an essential technique I use to manage repos from multiple endpoints. With Bash shortcuts, one can make this as simple as a single command.
Another useful note is that you can set the environment variable CC
to determine which C compiler software will use (use absolute paths to the executables if using custom software location). For instance, when using gcc-4.8 installed via Homebrew, add this to your shell profile:
export CC=/usr/local/bin/gcc-4.8 # set GCC as global C compiler
May I humbly suggest Mou
I am highly fond of Dash for managing git operations. I use the below 'snippet' to save me time and effort; the terms within underscores are variables naturally; Dash fills all the identically-named fields concurrently as you type.
mkdir __repository-name__
cd __repository-name__
git init
git remote add origin git@github-personal:SteveBenner/__repository-name__.git
echo "# Repo and README created using an automated script, bitch\!" >> README.md
git add README.md
git commit -m "Initial commit for git repo stored on Github.com."
git push -u origin master
It might be useful to mention this is Capistrano 2, and not version 3 you are using. They are quite different, and this can lead to confusion easily.
I've put together a ruby script as a gist which does something similar.