6.1 Modules on Github

Lets say you want to use a module you are developing outside of D.O… like maybe on Github

@ drupal8-site/composer.json

{
  "type": "package",
  "package": {
    "name": "drupal/gist_embed",
    "version": "dev-master",
    "type": "drupal-module",
    "source": {
      "url": "https://github.com/jmolivas/gist_embed.git",
      "type": "git",
      "reference": "8.1.x"
    }
  }
},

Now that its defined, you need to get it using the name you defined for it above

composer require drupal/gist_embed

Of course it must be installed, then export config, then push to git repo...