Git core objects
来源:互联网 发布:淘宝虚假交易警告2次 编辑:程序博客网 时间:2024/05/29 18:50
Git core objects
Core objects in git
- blob object
- tree object
- commit object
Git low level commands
- git hash-object
- git cat-file
- git update-index
- git write-tree
- git read-tree
- git commit-tree
git hash-object
git hash-object
used to compute object ID and optionally create a blob from a file.
$ echo "Hello furzoom" | git hash-object -w --stdin85b75207c07fe1be1e5116f73b74e1eb4a92a4a5
-w
tells hash-object to store the object. --stdin
tells the command to read the content from stdin.
git cat-file
git cat-file
provide content or type and size information for repository objects.
$ git cat-file -p 85b75207c07fe1be1e5116f73b74e1eb4a92a4a5Hello furzoom
p
tells cat-file to figure out the type of content and display it nicely for you.
git update-index
git update-index
register file contents in the working tree to the index.
$ echo 'new file' > new.txt$ git update-index --add new.txt
--add
tells update-index to add file to index (staging area).
git write-tree
git write-tree
create a tree object from the current index.
$ git write-tree
git read-tree
git read-tree
reads tree information into the index.
$ git read-tree <tree-sha1>
git commit-tree
git commit-tree
create a new commit object.
$ git commit-tree <tree-sha1> -p <parent-tree-sha1>
Three core objects in git
阅读全文
0 0
- Git core objects
- Core Java Data Objects
- Enterprise Core Objects 注册的问题
- The Core Objects of Your App
- Core Data Objects Section 错误问题
- Know the Core Objects of Your App
- git core.autocrlf
- Read notes for core java: Objects and classes
- OpenGL 4.3 (Core Profile) -5.3 Propagating Changes to Objects
- CoreText学习(一)Base Objects of Core Text
- CoreText学习(一)Base Objects of Core Text
- iOS App Programming Guide => Design Basic & Core Objects
- cast between Objective-C and Core Foundation-style objects
- 学习《core java》记录 -- 第四章 Objects and Classes
- GIT之core.autocrlf问题
- GIT-CORE的使用心得
- GIT-CORE的使用心得
- git core.autocrlf配置说明
- 关于定义引用数组
- SpringMVC面试题
- unpv1 Makefile 文件 简略分析
- Animator does not have an AnimatorController
- Linux基础-12(shell里所有的计算器)
- Git core objects
- Android Volley详解
- C语言求两正整数的最大公因数
- HDFS缓存与DistributedCache
- Nginx 中 fastcgi_pass 监听端口 unix socket和tcp socket差别
- RSA算法原理(二)
- PCA详细讲解、ZCA、 Whitening
- JVM性能调优之生成堆的dump文件
- 事件