From b89b5325e7062c89b945d0ee2f32521910d04edd Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Sun, 5 Aug 2007 01:33:03 +0100 Subject: [PATCH] Add a script to make it easier to initialize /.git We track the whole thing in git, but the download is pretty hefty (something like 45MB for a full clone), and therefore is not enabled by default. Now you can initialize it by calling 'initialize-msysGit.sh'. Signed-off-by: Johannes Schindelin --- bin/initialize-msysGit.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 bin/initialize-msysGit.sh diff --git a/bin/initialize-msysGit.sh b/bin/initialize-msysGit.sh new file mode 100644 index 00000000..c9c5afa5 --- /dev/null +++ b/bin/initialize-msysGit.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +# This script initializes /.git from msysgit.git on repo.or.cz + +test -d /.git || { + cd / && + git init && + git add bin doc etc lib mingw msys* share .gitignore && + git add $( (cd git && + git ls-files | grep -v "^\"\?gitweb" && + echo gitweb) | + sed "s|^|git/|" ) && + git update-index --add git/config.mak && + git remote add origin git://repo.or.cz/msysgit.git/ && + git fetch && + git gc && + git reset --soft origin/master && + git read-tree -m -u HEAD +} + -- 2.11.4.GIT