alexiszamanidis / vscode-git-worktrees

A VS Code extension that wraps git worktree operations for simplicity and productivity
https://marketplace.visualstudio.com/items?itemName=GitWorktrees.git-worktrees
MIT License
44 stars 5 forks source link

Remove with force #7

Closed painhardcore closed 2 years ago

painhardcore commented 2 years ago

I'm often feel disappointed in my life in the current worktree and I want to get rid of it quickly. So it would be great if I can easily delete it with the extension. Currently, I'm getting this, and I forced to open terminal.

Git Worktrees: Error: Command failed: git worktree remove goddamntry
fatal: 'goddamntry' contains modified or untracked files, use --force to delete it
alexiszamanidis commented 2 years ago

Hi @painhardcore,

This is a great idea, I will adapt it to the current git worktree removal operation.

painhardcore commented 2 years ago

@alexiszamanidis great to hear that. Thanks 👍

alexiszamanidis commented 2 years ago

Hi @painhardcore,

Force remove has been added to the extension.

I hope the implementation suits you!

alexiszamanidis commented 2 years ago

Hi @painhardcore,

Do you like the solution with the Popup? Or would it be better to add a force remove command? (Maybe both!?!)

painhardcore commented 2 years ago

@alexiszamanidis I think popup works great. This what I wanted. Thank you. 🥇

alexiszamanidis commented 2 years ago

You are welcome!

I'm glad you liked it.

Thank you for your time and contribution!