For code w/ data assets, just create a GitHub repo for it:
Help.GitHub.com/articles/create-a-repo/
After that, you can drag & drop your code’s root folder into your repo:
Help.GitHub.com/articles/adding-a-file-to-a-repository/
Here’s a repo example for a sketch containing lotsa data assets: