Site Map - skip to main content

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes every weekday Monday through Friday.
This page was generated by The HPR Robot at


hpr3307 :: Git worktree

How to use git worktree

<< First, < Previous, , Latest >>

Hosted by Klaatu on Tuesday, 2021-04-06 is flagged as Clean and is released under a CC-BY-SA license.
git, tree, trunk, branch. (Be the first).
The show is available on the Internet Archive at: https://archive.org/details/hpr3307

Listen in ogg, spx, or mp3 format. Play now:

Duration: 00:25:07

Introduction to Git.

Initiated by Klaatu, this open series introduces Git and the concepts behind its use in a collaborative environment.

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

Subscribe to the comments RSS feed.

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Title:
Comment:
Anti Spam Question: What does the letter P in HPR stand for?
Are you a spammer?
Who is the host of this show?
What does HPR mean to you?