gitbutlerapp / gitbutler

The GitButler version control client, backed by Git, powered by Tauri/Rust/Svelte
https://gitbutler.com
Other
13.14k stars 520 forks source link

Feature request: Bare Repository Support #2704

Open floork opened 8 months ago

floork commented 8 months ago

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!

krlvi commented 8 months ago

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

floork commented 8 months ago

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!

Byron commented 6 months ago

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.

floork commented 6 months ago

Great! Thanks for the affort