Sign in to follow this  
Followers 0
BINREV SPYD3R

HPR - HPR3307: Git worktree

1 post in this topic

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

View the full article

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0