Categorygithub.com/ldez/go-git-cmd-wrapper
modulepackage
1.3.0
Repository: https://github.com/ldez/go-git-cmd-wrapper.git
Documentation: pkg.go.dev

# README

= Go Git Cmd Wrapper

image:https://travis-ci.org/ldez/go-git-cmd-wrapper.svg?branch=master["Build Status", link="https://travis-ci.org/ldez/go-git-cmd-wrapper"] image:https://godoc.org/github.com/ldez/go-git-cmd-wrapper?status.svg["GoDoc", link="https://pkg.go.dev/github.com/ldez/go-git-cmd-wrapper"] image:https://goreportcard.com/badge/github.com/ldez/go-git-cmd-wrapper["Go Report Card", link="https://goreportcard.com/report/github.com/ldez/go-git-cmd-wrapper"]

image:https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg["Say Thanks!", link="https://saythanks.io/to/ldez"]

It's a simple wrapper around git command.

Import github.com/ldez/go-git-cmd-wrapper.

[source, golang]

// clone output, err := git.Clone(clone.Repository("https://github.com/ldez/gcg")) // with debug option output, err := git.Clone(clone.Repository("https://github.com/ldez/gcg"), git.Debug) output, err := git.Clone(clone.Repository("https://github.com/ldez/gcg"), git.Debugger(true))

// fetch output, err = git.Fetch(fetch.NoTags, fetch.Remote("upstream")) output, err = git.Fetch(fetch.NoTags, fetch.Remote("upstream"), fetch.RefSpec("master"))

// add a remote output, err = git.Remote(remote.Add, remote.Name("upstream"), remote.URL("https://github.com/ldez/gcg"))

More examples: link:https://pkg.go.dev/github.com/ldez/go-git-cmd-wrapper/git?tab=doc[documentation]

# Packages

Package add git-add - Add file contents to the index.
Package branch git-branch - List, create, or delete branches.
Package checkout git-checkout - Switch branches or restore working tree files.
Package clone git-clone - Clone a repository into a new directory.
Package commit git-commit - Record changes to the repository.
Package config git-config - Get and set repository or global options.
Package fetch git-fetch - Download objects and refs from another repository.
Package git Main package of the git commands.
Package init git-init - Create an empty Git repository or reinitialize an existing one.
Package merge git-merge - Join two or more development histories together.
Package pull git-pull - Fetch from and integrate with another repository or a local branch.
Package push git-push - Update remote refs along with associated objects.
Package rebase git-rebase - Reapply commits on top of another base tip.
Package remote git-remote - Manage set of tracked repositories.
Package reset git-reset - Reset current HEAD to the specified state.
Package revparse git-rev-parse - Pick out and massage parameters.
Package status git-status - Show the working tree status SYNOPSIS Reference: https://git-scm.com/docs/git-status git status [<options>...] [--] [<pathspec>...] DESCRIPTION Displays paths that have differences between the index file and the current HEAD commit, paths that have differences between the working tree and the index file, and paths in the working tree that are not tracked by Git (and are not ignored by gitignore(5)).
Package tag git-tag - git-tag - Create, list, delete or verify a tag object signed with GPG.
No description provided by the author
Package worktree git-worktree - Manage multiple working trees.