3 # Create an empty file object
4 empty_file_hash=$(git hash-object -w --stdin <<FOO
7 # Make a root directory tree with the config file in it
8 config_tree_hash=$(git mktree <<FOO
9 100644 blob $empty_file_hash config
12 # Commit the root directory tree
13 commit_hash=$(git commit-tree $config_tree_hash <<FOO
14 Initial commit on config branch.
17 # Push the commit out to the gitconfig branch
18 git update-ref refs/heads/gitconfig "$commit_hash" 0000000000000000000000000000000000000000