If put in your themes folder (next to functions.php), and required from your functions.php, will create a "Update GitHub submodules" tool in admin menu (you need a .gitmodules file in your theme also)