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.42.1 → 2.42.3 no changes
- 2.42.0
08/21/23
- 2.39.1 → 2.41.2 no changes
- 2.39.0
12/12/22
- 2.22.2 → 2.38.5 no changes
- 2.22.1
08/11/19
- 2.7.6 → 2.22.0 no changes
- 2.6.7
05/05/17
- 2.5.6 no changes
- 2.4.12
05/05/17
- 2.1.4 → 2.3.10 no changes
- 2.0.5
12/17/14
NOME
git-hash-object - calcula o ID do objeto, e opcionalmente, cria um objeto a partir de um arquivo
RESUMO
git hash-object [-t <tipo>] [-w] [--path=<arquivo> | --no-filters] [--stdin [--literally]] [--] <arquivo>… git hash-object [-t <tipo>] [-w] --stdin-paths [--no-filters]
DESCRIÇÃO
Computes the object ID value for an object with specified type with the contents of the named file (which can be outside of the work tree), and optionally writes the resulting object into the object database. Reports its object ID to its standard output. When <type> is not specified, it defaults to "blob".
OPÇÕES
- -t <tipo>
Especifica o tipo do objeto a ser criado (predefinição: "blob") Outros valores possíveis são
commit
,tree
,blob
e`tag`.- -w
Registre de fato o objeto dentro do objeto do banco de dados.
- --stdin
Leia o objeto da entrada padrão em vez de um arquivo.
- --stdin-paths
Leia os nomes dos arquivos na entrada padrão, um por linha, em vez de ler da linha de comando.
- --path
Hash object as if it were located at the given path. The location of the file does not directly influence the hash value, but the path is used to determine which Git filters should be applied to the object before it can be placed in the object database. As a result of applying filters, the actual blob put into the object database may differ from the given file. This option is mainly useful for hashing temporary files located outside of the working directory or files read from stdin.
- --no-filters
Faça o hash do conteúdo da forma que estiver, ignorando qualquer filtro na entrada que teria sido selecionado pelo mecanismo dos atributos, incluindo a conversão da quebra de linha. Se o arquivo foi lido a partir da entrada padrão, isso sempre será feito de forma implícita, a menos que a opção
--path
seja utilizada.- --literally
Permita que a opção
--stdin
faça o hash de qualquer lixo num objeto solto que, de outra forma, não passaria na análise do objeto predefinido ou nas verificações do git-fsck. Útil para realizar testes extensivos no Git ou reproduzir as características dos objetos corrompidos ou falsos encontrados por aí.
GIT
Parte do conjunto git[1]