Skip to content

Instantly share code, notes, and snippets.

View MugunthKumar's full-sized avatar

Mugunth Kumar MugunthKumar

View GitHub Profile
@MugunthKumar
MugunthKumar / initgit.sh
Created January 19, 2011 02:13
Initialize a git repository and copy a git ignore file from your home directory
# Copy this file to /usr/local/bin/ on your Mac
# type chmod +x initgit.sh
# From now on, on any folder, you can just type initgit.sh and a new git repo with a default .gitignore file will be created for you.
#! /bin/sh
git init
cp ~/.gitignore .
rm -r build/
git add .gitignore