Git
Português (Brasil) ▾Topics ▾Latest version ▾ git-http-push last updated in 2.43.0

NOME

git-http-push - Impulsiona os objetos por HTTP/DAV para um outro repositório

RESUMO

git http-push [--all] [--dry-run] [--force] [--verbose] <URL> <ref> [<ref>…​]

DESCRIÇÃO

Envia os objetos ausentes para o repositório remoto e atualiza a ramificação remota.

NOTE: This command is temporarily disabled if your libcurl is older than 7.16, as the combination has been reported not to work and sometimes corrupts the repository.

OPÇÕES

--all

Não assuma que o repositório remoto esteja completo na sua condição atual e verifique se todos os objetos em todo o histórico da referência local existem no repositório remoto.

--force

Usually, the command refuses to update a remote ref that is not an ancestor of the local ref used to overwrite it. This flag disables the check. What this means is that the remote repository can lose commits; use it with care.

--dry-run

Faça tudo, exceto realmente enviar as atualizações.

--verbose

Relate a lista dos objetos sendo percorridos localmente e a lista dos objetos enviados com sucesso para o repositório remoto.

-d
-D

Remove <ref> from remote repository. The specified branch cannot be the remote HEAD. If -d is specified, the following other conditions must also be met:

  • O HEAD remoto deve resolver para um objeto que exista localmente

  • O ramo informado resolve para um objeto que exista localmente

  • O ramo especificado é um ancestral do HEAD remoto

<ref>…​

O ramo remoto refs que serão atualizados.

ESPECIFICANDO AS REFS

A <ref> specification can be either a single pattern, or a pair of such patterns separated by a colon ":" (this means that a ref name cannot have a colon in it). A single pattern <name> is just a shorthand for <name>:<name>.

Each pattern pair <src>:<dst> consists of the source side (before the colon) and the destination side (after the colon). The ref to be pushed is determined by finding a match that matches the source side, and where it is pushed is determined by using the destination side.

  • É um erro caso <src> não corresponda exatamente a um dos refs locais.

  • Caso <dst> não corresponda a nenhum ref remoto

    • é preciso iniciar com "refs/"; o <dst> é utilizado literalmente como destino neste caso.

    • <src> == <dst> e a referência que coincida com <src> não devem existir no conjunto de refs remotas; o "ref" que coincida com o <src> localmente é utilizado como o nome do destino.

Without --force, the <src> ref is stored at the remote only if <dst> does not exist, or <dst> is a proper subset (i.e. an ancestor) of <src>. This check, known as "fast-forward check", is performed to avoid accidentally overwriting the remote ref and losing other peoples' commits from there.

Com --force, a verificação do avanço rápido é desativado para todas as refs.

Opcionalmente, um parâmetro <ref> pode ser prefixado com um sinal de mais + para desativar a verificação de avanço rápido apenas nessa "ref".

GIT

Parte do conjunto git[1]

scroll-to-top