gitutil

package
v0.1.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGitConfigPaths added in v0.1.5

func GetGitConfigPaths(scope config.Scope) ([]string, error)

获取 git 配置路径

func GetGitGlobalConfig added in v0.1.4

func GetGitGlobalConfig() (*config.Config, error)

获取 git 全局配置(位于 ~/.gitconfig),也是当前用户的配置

func GetGitRepoConfig added in v0.1.4

func GetGitRepoConfig() (*config.Config, error)

获取 git 仓库配置(位于 .git/config),也是当前仓库的配置

func GetGitSystemConfig added in v0.1.4

func GetGitSystemConfig() (*config.Config, error)

获取 git 系统配置(位于 /etc/gitconfig),也是所有用户的配置

func GetUserConfig added in v0.1.4

func GetUserConfig() (*config.Config, error)

获取用户配置(位于 ~/.gitconfig),也是当前用户的配置

func InitGit

func InitGit(projectDir string) error

InitGit 初始化 git 仓库

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL