git

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddEnvToGitignore

func AddEnvToGitignore() error

AddEnvToGitignore adds .env* to .gitignore

func CheckEnvGitignore

func CheckEnvGitignore() bool

CheckEnvGitignore checks if .env files are in .gitignore

func DetectRepo

func DetectRepo() (string, error)

DetectRepo detects the GitHub repository from git remote

func GetGitRoot

func GetGitRoot() (string, error)

GetGitRoot returns the root directory of the git repository

func IsGitRepository

func IsGitRepository() bool

IsGitRepository checks if the current directory is a git repository

func ParseGitHubURL

func ParseGitHubURL(url string) (string, error)

ParseGitHubURL extracts owner/repo from a GitHub URL

Types

This section is empty.

Jump to

Keyboard shortcuts

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