Documentation
¶
Index ¶
- func CheckoutBranch(path string, branch string) error
- func FetchOrigin(path string) error
- func GetCurrentBranch(path string) (string, error)
- func GetRemoteURL(path string) (string, error)
- func IsGitRepo(path string) bool
- func ResetHard(path string, target string) error
- func ValidateBranchTarget(branch string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckoutBranch ¶
CheckoutBranch checks out a branch in the repository
func FetchOrigin ¶
FetchOrigin fetches updates from the remote origin
func GetCurrentBranch ¶
GetCurrentBranch returns the current branch name
func GetRemoteURL ¶
GetRemoteURL returns the URL of the remote origin
func ValidateBranchTarget ¶
ValidateBranchTarget validates that a branch name is allowed for reset operations.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.