gitbutler icon indicating copy to clipboard operation
gitbutler copied to clipboard

Feature request: Bare Repository Support

Open floork opened this issue 1 year ago • 2 comments

Hey Gitbutler Team,

I ran into an issue trying to open a branch in a bare repository using Gitbutler. Here's the error message I got: image

It'd be super helpful if you could make it possible to create branches directly in bare repositories. That would make my workflow a lot smoother.

Thanks a bunch!

floork avatar Feb 15 '24 09:02 floork

Hey @floork ! We had not considered bare checkouts. I would love to hear more about your use case

krlvi avatar Feb 18 '24 21:02 krlvi

Hi @krlvi,

Thanks for reaching out! Let me give you some more insight into how I work.

So, I'm all about using worktrees to tackle issues head-on and keep things organized. They've been a game-changer for me in managing my projects effectively.

But then I stumbled upon Gitbutler and its virtual branches feature got me intrigued. I see a lot of potential there, especially for handling feature development within those feature branches.

Here's the thing: if I could create branches directly in bare repositories with Gitbutler, it would take my workflow to the next level. It's like having the best of both worlds – the flexibility of worktrees and the power of virtual branches, all in one place.

So yeah, that's where I'm coming from. I hope that gives you a clearer picture of why I'm excited about this idea!

floork avatar Feb 19 '24 08:02 floork

Just as an update, the error messages improved since then.

As of Version 0.11.3 (20240419.070253) , it looked like this:

Screenshot 2024-04-21 at 17 32 38

And one of the next releases should show something like this to make clear what's going on.

Screenshot 2024-04-21 at 17 39 24

Supporting a bare repository with worktrees is definitely an interesting feature though! As long as only one worktree is checking out the gitbutler/integration branch, it should have a chance to work.

Byron avatar Apr 21 '24 15:04 Byron

Great! Thanks for the affort

floork avatar Apr 22 '24 07:04 floork