UNPKG
hudada-cli
Version:
latest (1.0.10)
1.0.10
1.0.9
1.0.8
1.0.7
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
专为程序员准备的本地文档搜索,快捷开发工具
github.com/hudada-hub/hudada-tool.git
hudada-hub/hudada-tool
hudada-cli
/
data
/
git
/
hash-object.md
17 lines
(9 loc)
•
332 B
Markdown
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# git hash-object
`git
hash
-
object
`命令计算一个文件的git对象ID,即SHA1的哈希值。 ```bash $ echo
"hello"
| git
hash
-
object
--stdin $ echo
"hola"
| git
hash
-
object
-w --stdin ``` 参数 - w 将对象写入对象数据库 - stdin 表示从标准输入读取,而不是从本地文件读取。