TREE=$(git write-tree) SOUTH=$(git commit-tree $TREE -m "South") EAST=$(git commit-tree $TREE -m "East" -p $SOUTH) WEST=$(git commit-tree $TREE -m "West" -p $SOUTH) NORTH=$(git commit-tree $TREE -m "Nort" -p $EAST -p $WEST)