Skip to content

Instantly share code, notes, and snippets.

@sithembiso
sithembiso / pull.go
Last active March 15, 2023 16:17
git pull using git2go
func (repo *Repo) Pull() error {
branch, err := repo.Branch()
if err != nil {
return err
}
// Get the name
name, err := branch.Name()
if err != nil {
return err