Edd Barrett
Edd Barrett

Reputation: 3573

Signing git commits on a remote machine

I'm doing development on a remote, headless, shared, machine (call it shared) over SSH using nvim. When I want to submit my changes, I have to raise a github pull request with SSH-signed commits. Because the machine is shared, I don't want to put my SSH key onto it.

Further, the shared machine has special setup that means I can't develop locally.

The repo is large.

My current workflow involves having a local clone of the repo (call it local) with a git remote for the shared machine and once I have commits I want to PR:

Then if the PR process requires that I add follow up commits or that I do squashing, then have to go back to the shared machine and:

My question is a bit vague and open-ended. How can I streamline this?

I think there are two sub-problems:

I appreciate that this is a very niche problem, but I wonder if someone has tackled a similar problem before?

Solutions I considered and didn't like:

Upvotes: 2

Views: 275

Answers (0)

Related Questions