Setup and Config
Getting and Creating Projects
Basic Snapshotting
Branching and Merging
Sharing and Updating Projects
Inspection and Comparison
Patching
Debugging
External Systems
Server Admin
- 2.43.1 → 2.45.2 no changes
- 2.43.0
11/20/23
- 2.36.1 → 2.42.3 no changes
- 2.36.0
04/18/22
- 2.18.1 → 2.35.8 no changes
- 2.18.0
06/21/18
- 2.12.5 → 2.17.6 no changes
- 2.11.4
09/22/17
- 2.10.5 no changes
- 2.9.5
07/30/17
- 2.8.6
07/30/17
- 2.5.6 → 2.7.6 no changes
- 2.4.12
05/05/17
- 2.1.4 → 2.3.10 no changes
- 2.0.5
12/17/14
RESUMO
git fetch-pack [--all] [--quiet|-q] [--keep|-k] [--thin] [--include-tag] [--upload-pack=<git-upload-pack>] [--depth=<n>] [--no-progress] [-v] <repositório> [<refs>…]
DESCRIÇÃO
No lugar utilize git fetch que é um wrapper de maior hierarquia deste comando.
Invokes git-upload-pack on a possibly remote repository and asks it to send objects missing from this repository, to update the named heads. The list of commits available locally is found out by scanning the local refs/ hierarchy and sent to git-upload-pack running on the other end.
Este comando deteriora durante o download de tudo para concluir os refs
solicitados do lado remoto quando o lado local não possui um commit com um ancestral comum.
OPÇÕES
- --all
Busque todas os
refs
remotos.- --stdin
Pegue a lista dos
refs
do stdin, um por linha. Caso hajarefs
utilizados na linha de comando, além desta opção, osrefs
do stdin serão processados após as da linha de comando.Caso
--stateless-rpc
seja utilizado junto com esta opção, a lista de referências deverá estar no formato do pacote (linha-pkt). Cadaref
deve estar num pacote separado e a lista deve terminar com um pacote liberado.- -q
- --quiet
Passe o flag
-q
para o git unpack-objects; isso torna o processo de clonagem menos detalhado.- -k
- --keep
Não invoque o git unpack-objects nos dados recebidos, porém crie um único arquivo do pacote a partir dele e armazene-o no banco de dados do objeto. Caso seja utilizado duas vezes, o pacote será bloqueado contra a reembalagem.
- --thin
Busque um pacote "thin", que registra os objetos num formato "deltificado" com base nos objetos não inclusos no pacote para reduzir o tráfego de rede.
- --include-tag
If the remote side supports it, annotated tags objects will be downloaded on the same connection as the other objects if the object the tag references is downloaded. The caller must otherwise determine the tags this option made available.
- --upload-pack=<git-upload-pack>
Use this to specify the path to git-upload-pack on the remote side, if it is not found on your $PATH. Installations of sshd ignores the user’s environment setup scripts for login shells (e.g. .bash_profile) and your privately installed git may not be found on the system default $PATH. Another workaround suggested is to set up your $PATH in ".bashrc", but this flag is for people who do not want to pay the overhead for non-interactive shells by having a lean .bashrc file (they set most of the things up in .bash_profile).
- --exec=<git-upload-pack>
O mesmo que --upload-pack=<git-upload-pack>.
- --depth=<n>
Limit fetching to ancestor-chains not longer than n. git-upload-pack treats the special depth 2147483647 as infinite even if there is an ancestor-chain that long.
- --shallow-since=<data>
Aprofunde ou encurte o histórico de um repositório raso para incluir todas os commits acessíveis após a <data>.
- --shallow-exclude=<revisão>
Deepen or shorten the history of a shallow repository to exclude commits reachable from a specified remote branch or tag. This option can be specified multiple times.
- --deepen-relative
O argumento
--depth
determina a quantidade limite dos commits atual da superfície em vez do cume de cada histórico do ramo remoto.- --refetch
Ignora a negociação dos commits com o servidor, a fim de obter (fetch) todos os objetos correspondentes. Use para reaplicar uma nova clonagem parcial do filtro da bolha/árvore.
- --no-progress
Não exiba o progresso.
- --check-self-contained-and-connected
Exiba "connectivity-ok" caso o pacote recebido seja independente e conectado.
- -v
Rode de forma loquaz.
- <repositório>
A URL para o repositório remoto.
- <refs>…
The remote heads to update from. This is relative to $GIT_DIR (e.g. "HEAD", "refs/heads/master"). When unspecified, update from all heads the remote side has.
Caso o lado remoto tenha as opções
uploadpack.allowTipSHA1InWant
,uploadpack.allowReachableSHA1InWant
, ouuploadpack.allowAnySHA1InWant
ativadas, eles poderão alternativamente ser sha1 com 40-hex.
GIT
Parte do conjunto git[1]