src-d / go-git

Project has been moved to: https://github.com/go-git/go-git
https://github.com/go-git/go-git
Apache License 2.0
4.9k stars 540 forks source link

Rename local branch #1147

Open sauravhaloi opened 5 years ago

sauravhaloi commented 5 years ago

Is there a way, with which I can rename a local branch? I tried with using CheckAndSetReference(new, old *plumbing.Reference) error, but it did not work.