This commit is contained in:
2023-12-05 19:03:27 +00:00
commit 6859e01192
11 changed files with 288 additions and 0 deletions

23
git/pull.go Normal file
View File

@@ -0,0 +1,23 @@
package git
// Pull pulls the latest changes from the remote
func (g *Git) Pull() error {
_, err := g.Execute("pull")
if err != nil {
return err
}
return nil
}
// PullMain pulls the latest changes from the remote main branch
func (g *Git) PullMain() error {
_, err := g.Execute("pull", "origin", g.MainBranch)
if err != nil {
return err
}
return nil
}