Skip to content

Instantly share code, notes, and snippets.

View ethernetdan's full-sized avatar

Dan Gillespie ethernetdan

  • Indent
  • New York, NY
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