mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-22 16:20:19 +01:00
7 lines
359 B
Text
7 lines
359 B
Text
As soon as you have some tree objects, you can always read them and set the index exactly to their content! Unsurprisingly, the command is called
|
|
|
|
git read-tree <tree>
|
|
|
|
For <tree>, you can provide the hash of any tree object - you can right-click one to insert its hash into the terminal!
|
|
|
|
Try reading some of the trees in this repository into the index!
|