Documentation
¶
Overview ¶
Package git provides helper functions to execute common Git commands by wrapping the system's git binary using os/exec.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Clone ¶
Clone executes a git clone command for the given URL into the target directory. If recurseSubmodules is true, it appends the --recurse-submodules flag.
func CurrentBranch ¶
CurrentBranch retrieves the name of the currently checked-out branch.
func Pull ¶
Pull executes a git pull --rebase --autostash command in the target directory. If recurseSubmodules is true, it appends the --recurse-submodules flag.
func RemoteOrigin ¶
RemoteOrigin retrieves the remote origin URL of the target directory.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.