13. How to create tree object in Git| How to view using git cat file | Git tutorial for begineer

Опубликовано: 26 Октябрь 2024
на канале: Teach YourSelf Code
894
17

How to create tree object in Git| How to view using git cat file | Git tutorial for begineer

Hi All,

In the previous videos we have seen how to create blob object using git hash-object and how to to view the blob object using git cat-file. This video contains details on how to create a tree object in git using git hash-object and viewing the tree object content using git cat-file.
This video contains the below content:
1) Create 2 files with some content in any location (in our case Desktop).
2) Create a blob object for these 2 files.
3) Create a new new file in the Desktop which contains details of the 2 blob (tree.txt).
Example
100644 blob 34bb687678a7a6d2c2d910070024f560c8d290db samplefile1.txt
100644 blob 65fd687678a7a6d2c2d760070024f560c8d290db samplefile2.txt
4) cat ../treefile.txt | git mktree


Playlist:
Git tutorial:
   • 7. How to initialize git repository |...  

3rd party application installation:
   • How to install postman in MAC  

Spring boot begineers tutorial:
   • 1. What is spring boot and how to wri...  

Selenium Ruby Tutorial:
   • 1. How to install firebug and firepat...  

Ruby Tutorial:
   • Ruby tutorial: Chapter 1 Top 5 reason...  

About this channel:
This is channel is dedicated for all those who want to learn new technologies by self learning. We keep on adding new content in this channel on a day to day basis and try to share our knowledge. Please feel free to drop your question to the email id mentioned below or comment on the video if you feel so.

facebook page:
  / teach-yourself-code-102086558276245  
LinkedIn:
  / gagan-arora-pm  
Email Id:
[email protected]