Skip to content

Instantly share code, notes, and snippets.

@jnericks
Created February 16, 2012 16:43
Show Gist options
  • Save jnericks/1846346 to your computer and use it in GitHub Desktop.
Save jnericks/1846346 to your computer and use it in GitHub Desktop.
new-sln-git()
{
slnname=$1
if [ -n "${slnname}" ]
then
mkdir ${slnname}
cd ${slnname}
cp "/cygdrive/c/Dropbox/Environment/dotNET/empty.sln" "${slnname}.sln"
cp "/cygdrive/c/Dropbox/Environment/Ignores/.gitignore" .
git init
git add -A
git commit -am "initial commit"
else
Echo "must provide name for solution (eg. new-sln-git name_for_solution)"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment