# Pijul as an alternative to stacked-git?

**URL:** <https://discourse.pijul.org/t/pijul-as-an-alternative-to-stacked-git/928>\
**Category:** Question\
**Created:** [June 10, 2022, 2:50am UTC](https://discourse.pijul.org/t/pijul-as-an-alternative-to-stacked-git/928 "2022-06-10T02:50:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![woobilicious](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/woobilicious/32/466_2.png) [@woobilicious](https://discourse.pijul.org/u/woobilicious)\
**Post date:** [June 10, 2022, 2:50am UTC](https://discourse.pijul.org/t/pijul-as-an-alternative-to-stacked-git/928/1 "2022-06-10T02:50:26Z")

</div>

[https://stacked-git.github.io/](https://stacked-git.github.io/)

Stacked git is a plugin to git that lets you maintain special branches that use a theory of patches, but in a simple stack.

I’ve been helping someone maintain some patches to the linux kernel, and the idea of maintaining a DAG instead of snapshots or a simple stack would be really nice, but from reading the documentation I can’t seem to find any way of exporting to git.

It would be nice if we could somehow hook in to git and have all pijul channels be reflected as git branches in a git that auto update when ever something is changed. right now rebasing 3 branches on top of a 4th is pretty time consuming, and sometimes forgotten about.

Are there any solutions for this? I don’t see any obvious “export” feature in the documentation.

---

<div class="post-metadata">

**Author:** ![pmeunier](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/pmeunier/32/4_2.png) [@pmeunier](https://discourse.pijul.org/u/pmeunier)\
**Post date:** [June 10, 2022, 7:16am UTC](https://discourse.pijul.org/t/pijul-as-an-alternative-to-stacked-git/928/2 "2022-06-10T07:16:17Z")

</div>

There is no obvious export feature yet, and even the import feature is not satisfactory for me.

There is a number of things I’d like to do around the Pijul-Git interface, but my main limitation at the moment is work time. If you want to help, I can mentor you.

---

<div class="post-metadata">

**Author:** ![pmeunier](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/pmeunier/32/4_2.png) [@pmeunier](https://discourse.pijul.org/u/pmeunier)\
**Post date:** [June 10, 2022, 7:17am UTC](https://discourse.pijul.org/t/pijul-as-an-alternative-to-stacked-git/928/3 "2022-06-10T07:17:15Z")

</div>

Also, you’re right to think that Pijul works better for rebases than stacked-git, even though stacked-git is a nice attempt to fix Git. Our main hypothesis here is that Git isn’t really fixable, because merges solve the wrong problem.

---

<div class="post-metadata">

**Author:** ![woobilicious](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/woobilicious/32/466_2.png) [@woobilicious](https://discourse.pijul.org/u/woobilicious)\
**Post date:** [June 10, 2022, 8:27am UTC](https://discourse.pijul.org/t/pijul-as-an-alternative-to-stacked-git/928/4 "2022-06-10T08:27:38Z")

</div>

I would love to help but I got too much on my plate at the moment.

I’ve been mentored on kernel dev, so that’s my biggest commitment.

---

<div class="post-metadata">

**Author:** ![yin](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/yin/32/517_2.png) [@yin](https://discourse.pijul.org/u/yin)\
**Post date:** [April 25, 2023, 8:55pm UTC](https://discourse.pijul.org/t/pijul-as-an-alternative-to-stacked-git/928/5 "2023-04-25T20:55:17Z")

</div>

A different approach to having an import/export feature would be to use Pijul as a flexible fronted for whatever code versioning mechanism you need to interface with.

Instead as seeing foreign repositories as something different you need an export logic, Pijul just can see all of them as remotes and channels and don’t care where exactly, or how exactly the patches pushed/pulled get stored.

---

<div class="post-metadata">

**Author:** ![andybalholm](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/andybalholm/32/510_2.png) [@andybalholm](https://discourse.pijul.org/u/andybalholm)\
**Post date:** [May 11, 2023, 3:52pm UTC](https://discourse.pijul.org/t/pijul-as-an-alternative-to-stacked-git/928/6 "2023-05-11T15:52:26Z")

</div>

I’ve implemented `git fast-export` for Pijul ([andybalholm/pijul-export](https://nest.pijul.com/andybalholm/pijul-export)). I’m sure it won’t be a full replacement for stacked git, but it might help some.
