Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

I can't open a pull request to GitHub Enterprise

Chuck Doucette
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 13, 2019

My company is in the middle of migrating from GitHub to GitHub enterprise.

My copy of SourceTree is configured with two accounts.

For the repositories that have been moved to GHE, I am able to do all of the normal operations (fetch, pull, merge, push etc.).

However, when I attempt to open a pull request - it opens this:

https://github.com/Supplemental-and-Intervention-Solutions/hmheng-math-180/compare/jenkins-int-deploy?expand=1

instead of this:

https://scm.eng.hmhco.com/Supplemental-and-Intervention-Solutions/hmheng-math-180/compare/jenkins-int-deploy?expand=1

Currently, my repository remote is as follows:

git@scm.eng.hmhco.com:Supplemental-and-Intervention-Solutions/hmheng-math-180.git

I would have expected for it to use the remote.

 

1 answer

0 votes
Mike Corsaro
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 27, 2019

Hello! You'll have to adjust the remote host settings for the repo. There's 2 ways you can do this:

 

If you already have a Github Enterprise account added to Sourcetree:

  • Open the repo
  • Hit the "Settings" button
  • Click "Edit" on the remote URL
  • Under "Remote Account" select your Github Enterprise account
  • Click OK

If you don't have a Github Enterprise account added, and don't want to add one:

  • Open the repo
  • Hit the "Settings" button
  • Click "Edit" on the remote URL
  • Under "Remote Account" select "Generic Account"
  • Under "Host Type" select "Bitbucket Server"
  • Change the "Host Root URL" to "https://scm.eng.hmhco.com"
  • Click OK

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events