Documentation ¶
Index ¶
- func Add(worktree *git.Worktree, paths []string) error
- func Checkout(worktree *git.Worktree, branch string, create bool) error
- func CloneRepo(cloneURL, destination, headRepoOwner, branch string) (*git.Repository, string, error)
- func Commit(worktree *git.Worktree, commitMessage string) error
- func Push(repo *git.Repository, headRepoOwner, branch, githubToken string) error
- func ResetToHEAD(worktree *git.Worktree, baseRepoHeadCommit string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Checkout ¶
Checkout checks out the working tree at the given branch, creating a new branch if necessary.
func CloneRepo ¶
func CloneRepo(cloneURL, destination, headRepoOwner, branch string) (*git.Repository, string, error)
CloneRepo clones the remote repository to a destination folder and creates a Git remote.
func ResetToHEAD ¶
ResetToHEAD hard-resets the current working tree to point to the HEAD commit of the base repository.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.