Sharing an stgit stack through a remote repository

35 views
Skip to first unread message

Lars Kellogg-Stedman

unread,
Dec 24, 2021, 9:11:16 PM12/24/21
to StGit (Stacked Git)
I was looking for a way to push my local development environment up to a remote repository and pull it down on another system, maintaining the list of patches. This is what I came up with (assuming I am working on the "develop" branch):

On the originating system:

git push origin develop
git push origin refs/stacks/develop:refs/heads/develop.stgit

On the receiving system:

git clone <repourl>
git checkout develop
git fetch origin refs/heads/develop.stgit:refs/stacks/develop

That seems to work. Am I missing anything?

Paul Moore

unread,
Dec 30, 2021, 10:21:43 AM12/30/21
to Lars Kellogg-Stedman, StGit (Stacked Git)
Thanks Lars, that is something I've always wondered about but never
spent the time to figure it out. I'm not sure if this is something
the stgit devs are interested in supporting, but I'd love to see this
functionality as a built-in stgit command.

--
paul moore
www.paul-moore.com
Reply all
Reply to author
Forward
0 new messages