Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8748565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:32:49+00:00 2026-06-13T12:32:49+00:00

Working on local, pushing changes to Heroku works and the app works as expected.

  • 0

Working on local, pushing changes to Heroku works and the app works as expected. However I am having trouble linking heroku app to a private repo on Github.

Current configuration looks something like this

git@github.com:{Organization}/{project}.git

Where should I configure username/password for the private repo?

I tried (even though this is not the preferred way)

username:password@github.com/{organization}/{project}.git

would appreciate any pointers regarding this.

EDIT:
I failed to mention that I am setting it under app settings in Heroku.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T12:32:50+00:00Added an answer on June 13, 2026 at 12:32 pm
     git@github.com:{Organization}/{project}.git
    

    This is an ssh address, with the authentication managed by public/private key: make sure your public key is published among the collaborators’ keys for that Organization.
    No "username" or "password" here.

    username:password@github.com/{organization}/{project}.git
    

    That could be correct if you use that remote address as an HTTPS address.


    Note that Honza Javorek mentions in "How do I access a private github repo from heroku?" in Nov. 2020:

    Heroku only supports HTTP(S) Basic authentication with Git out of the box.
    That’s unfortunate as it means you’d need to add your credentials as part of the installation URL and commit that as plain text in your list of dependencies.

    He suggests to create a new GitHub SSH key and follow the heroku-buildpack-ssh-key process:

    heroku buildpacks:add https://github.com/heroku/heroku-buildpack-ssh-key.git -i 1
    heroku config:set BUILDPACK_SSH_KEY=$(cat ~/.ssh/id_rsa_heroku)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I accidentially discard my changes on files in my local working tree via git
I'm working with some local json files but I'm having some problems with the
I had a working Active Admin app working on my local server, but after
I'm working in local branch and want to try my changes on staging server,
I've been working local on tomcat server 7, now I uploaded my project to
I have checked out now a local working copy of a codebase that lives
I have a codeigniter code that is working on local Apache installation. But it
I have a website that per original developer was working on local environment. I
I have smooth streaming working on my local machine. The video plays nicely and
I have a database working in my local sql server 2005 express edition. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.