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?
Asked
Active
Viewed 445 times
1 Answers
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