Sourcing raw text from external files in posts

I write code tutorials and always like to keep the code in my posts (code blocks) in sync with the code in my git repos. What would be the best way to include code (raw text) in my Jekyll kramdown from external files?