push

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2017 License: Apache-2.0 Imports: 2 Imported by: 8

Documentation

Overview

git-push - Update remote refs along with associated objects

SYNOPSIS

git push [--all | --mirror | --tags] [--follow-tags] [--atomic] [-n | --dry-run] [--receive-pack=<git-receive-pack>]
	[--repo=<repository>] [-f | --force] [-d | --delete] [--prune] [-v | --verbose]
	[-u | --set-upstream] [--push-option=<string>]
	[--[no-]signed|--sign=(true|false|if-asked)]
	[--force-with-lease[=<refname>[:<expect>]]]
	[--no-verify] [<repository> [<refspec>...]]

DESCRIPTION

Updates remote refs using local refs, while sending objects necessary to complete the given refs.

You can make interesting things happen to a repository every time you push into it, by setting up hooks there. See documentation for git-receive-pack(1).

When the command line does not specify where to push with the <repository> argument, branch.*.remote configuration for the current branch is consulted to determine where to push. If the configuration is missing, it defaults to origin.

When the command line does not specify what to push with <refspec>... arguments or --all, --mirror, --tags options, the command finds the default <refspec> by consulting remote.*.push configuration, and if it is not found, honors push.default configuration to decide what to push (See git-config(1) for the meaning of push.default).

When neither the command-line nor the configuration specify what to push, the default behavior is used, which corresponds to the simple value for push.default: the current branch is pushed to the corresponding upstream branch, but as a safety measure, the push is aborted if the upstream branch does not have the same name as the local one.

URL: https://git-scm.com/docs/git-push

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(g *types.Cmd)

func Atomic

func Atomic(g *types.Cmd)

func Delete

func Delete(g *types.Cmd)

func DryRun

func DryRun(g *types.Cmd)

func FollowTags

func FollowTags(g *types.Cmd)

func Force

func Force(g *types.Cmd)

func ForceWithLease

func ForceWithLease(g *types.Cmd)

func Mirror

func Mirror(g *types.Cmd)

func Prune

func Prune(g *types.Cmd)

func PushOption

func PushOption(option string) func(*types.Cmd)

func ReceivePack

func ReceivePack(gitReceivePack string) func(*types.Cmd)

func RefSpec

func RefSpec(refspec string) func(*types.Cmd)

func Remote

func Remote(repository string) func(*types.Cmd)

func Repo

func Repo(repository string) func(*types.Cmd)

func SetUpstream

func SetUpstream(g *types.Cmd)

func Tags

func Tags(g *types.Cmd)

func Verbose

func Verbose(g *types.Cmd)

Types

This section is empty.

Jump to

Keyboard shortcuts

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