Re:Git is too hard
by magicalhippo on Wednesday November 18, 2020 @10:32AM
(#25137853)
Thinking about it, I guess it should be possible to flip this around by using a temporary local branch. Commit everything there, then cherry-pick into repo dir and commit proper.
Once done delete temp branch and push.
https://github.com/tv42/staged does something like that by writing the staged content to a temp dir.
(It has some smarts for Go GOPATH adjusting on top, but might not do things right with modules, at this time.)