read file content for git