pub fn write_git_to_vec(git: &Git) -> Result<Vec<u8>, GitError>
Serializes typed GIT data into a byte vector.