author | Matthias Lederhofer <matled@gmx.net> | |
Tue, 3 Jul 2007 22:49:19 +0000 (00:49 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 4 Jul 2007 19:53:30 +0000 (12:53 -0700) | ||
commit | ef6f0af2b6975e6568542123d015aa7e39bea0c3 | |
tree | 8d60e5262fd24793ba491412d5c51fd22d3571d6 | tree | snapshot |
parent | f66a4d68d2066998605f5910c3c8dd1e4a25fc7f | commit | diff |
git-init: set core.worktree if GIT_WORK_TREE is specified
Now you can do the following to create a repository which
has a separate working tree:
/tmp/foo$ export GIT_DIR=/tmp/bar
/tmp/foo$ git --work-tree . init
Initialized empty Git repository in /tmp/bar/
/tmp/foo$ git config core.worktree
/tmp/foo
Signed-off-by: Matthias Lederhofer <matled@gmx.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Now you can do the following to create a repository which
has a separate working tree:
/tmp/foo$ export GIT_DIR=/tmp/bar
/tmp/foo$ git --work-tree . init
Initialized empty Git repository in /tmp/bar/
/tmp/foo$ git config core.worktree
/tmp/foo
Signed-off-by: Matthias Lederhofer <matled@gmx.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-init-db.c | diff | blob | history |