Converting a Repo from personal to team is Awesome, except my https url still has my personal username

James Bowler avatarJames Bowler created an issue

I converted some Repos from personal to team.

For other team members, the https url is correct. For me, the https url still has my personal username in it. So, when I changed the remote url, no one else could pull (they would get auth error). I can manually change it, but it took a little to find out what was going on.

Steps to recreate: 1. create a repo 2. convert the repo to a team repo 3. look at your https url for that repo, and look at the ssh addr. The ssh is correct, the https is not.

Comments (3)

  1. Brodie Rao

    Hi James,

    The HTTPS clone URL we show on the site always includes the username of the person viewing the page. If the repo is owned by a team, it's still going to show the username of whoever you're logged in as—not the team's username.

    Even if the repo is under a team account, we recommend that you always access it using your own individual account.

    The reason this isn't a problem for SSH is that we don't include any kind of personal username in the command—we figure out who are you on the site based on the SSH key you added to your account. Everyone uses the same "hg" and "git" SSH users.

    If you have any other questions, let me know. Thanks!

  2. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.