How to share private code between projects?

Per mix deps.get - Error fetching private repo on GitHub using :github option · Issue #3422 · elixir-lang/elixir · GitHub, this should work:

{:app_name, git: "git@github.com:YOUR_ACCOUNT/app_name.git"}

assuming you have SSH keys set up to connect to your private repo.