Documentation
¶
Overview ¶
Package gogit implements git cli commands in a more convenient way.
Index ¶
- func Add(s ...string) error
- func AddAll() error
- func Commit(message string) error
- func CommitAll(message string) error
- func Err(err error) error
- func GitInit() error
- func IsAlphaNum(s string) bool
- func IsHash(s string) bool
- func PushTags() error
- func Remote() string
- func RemoteName() string
- func Tag(s string) error
- func VersionTag() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GitInit ¶
func GitInit() error
GitInit initializes the Git environment in the current directory with:
git init git add --all git commit -m 'Initial Commit'
func IsAlphaNum ¶
func Remote ¶
func Remote() string
Remote returns the remote repository url.
origin git@github.com:skeptycal/util.git (fetch) origin git@github.com:skeptycal/util.git (push)
func RemoteName ¶
func RemoteName() string
RemoteName gets the name of the remote branch, usually origin.
func VersionTag ¶
func VersionTag() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.