All Git Object Types: Blob, Tree, Commit And Tag

All Git Object Types: Blob, Tree, Commit And Tag

The complete list of git object types is here:

  1. blob
  2. tree
  3. commit
  4. tag

Git blob object


The git “blob” type is just a bunch of bytes that could be anything, like a text file, source code, or a picture, etc.

Learn more about the git blob object.

Git tree object

A git tree is like a filesystem directory. A git tree can point to, or include:

  1. Git “blob” objects (similar to a filesystem directory includes filesystem files).
  2. Other git trees (similar to a filesystem directory can have subdirectories).

Learn more about the git tree object.

Git commit object

A git commit object includes:

  • Information about who commited (made) the change/check-in/commit. For example, it stores the name and email address.
  • A pointer to the git tree object that represents the git repository when the commit was done
  • The parent commit to this commit (so we can easily find out the situation at the previous commit).

Learn more about the git commit object.

Git tag object

A git tag object points to any git commit object.  A git tag can be used to refer to a specific tree, rather than having to
remember or use the hash of the tree.

Learn more about the git tag object.

Next: The Git Object Model: Starting with the “blob” object
Previous: Why Use Git Instead of a Legacy Version Control System?

Related:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值