Skip to content

Instantly share code, notes, and snippets.

View sithembiso's full-sized avatar
🏠
Working remotely

Excellent Khumalo sithembiso

🏠
Working remotely
View GitHub Profile
@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