mirror of
https://github.com/git/git.git
synced 2026-01-11 13:23:12 +09:00
doc: git-worktree: Add side by side branch checkout example
Signed-off-by: Michal Suchanek <msuchanek@suse.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
dd4271e1c5
commit
b0380a8ebc
@ -522,6 +522,16 @@ $ popd
|
||||
$ git worktree remove ../temp
|
||||
------------
|
||||
|
||||
Side by side branch checkouts for a repository using multiple worktrees
|
||||
|
||||
------------
|
||||
mkdir some-repository
|
||||
cd some-repository
|
||||
git clone --bare gitforge@someforge.example.com:some-org/some-repository some-repository.git
|
||||
git --git-dir=some-repository.git worktree add some-branch
|
||||
git --git-dir=some-repository.git worktree add another-branch
|
||||
------------
|
||||
|
||||
BUGS
|
||||
----
|
||||
Multiple checkout in general is still experimental, and the support
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user