0

Having trouble finding a way to push all branches to a remote using go-git without iterating all branches. I've looked at the PushOptions definition, and I'm not seeing an option that correlates to git push --all <remote>. Has anyone accomplished this?

JTW
  • 3,546
  • 8
  • 35
  • 49

1 Answers1

0

You are correct. You'd iterate all references yourself and create a refspec for each and add them to PushOptions.RefSpecs.

orirawlings
  • 724
  • 1
  • 6
  • 10