Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes Monday through Friday.


HPR3307: Git worktree

Hosted by Klaatu on 2021-04-06 00:00:00
Download or Listen

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

Comments



More Information...


Copyright Information

Unless otherwise stated, our shows are released under a Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) license.

The HPR Website Design is released to the Public Domain.