Search

Home > Hacker Public Radio > HPR3307: Git worktree
Podcast: Hacker Public Radio
Episode:

HPR3307: Git worktree

Category: Technology
Duration: 00:00:00
Publish Date: 2021-04-06 00:00:00
Description:

Create a new worktree


$ git branch | tee
* dev
trunk
$ git worktree add -b hotfix ~/demo/penguin.tree trunk
Preparing ../penguin.tree (identifier penguin.tree)
HEAD is now at 62a2daf commit

List existing worktrees


$ git worktree list
/home/tux/demo/penguin.git       15fca84 [dev]
/home/tux/demo/penguin.tree     09e585d [trunk]

Move a worktree


$ git worktree move penguin.tree ~/Temp

Remove a worktree


$ git worktree remove penguin.tree

Total Play: 0

Users also like

90+ Episodes
Seginfocast .. 100+     20+