Missed Team ’24? Catch up on announcements here.

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

What is git address for my repository

Gaurav Shah
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 5, 2022

Sorry to ask silly question, but please let me know, which remote address I put in

"git remote add"

1 answer

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 7, 2022

Hey Gaurav!

Welcome to the Bitbucket Cloud community! :)

The address which is added will depend on whether you are using HTTPS or SSH for authentication.

The easiest way to determine the URL will be to click the "Clone" button in the UI to get the clone command, cloning the repo will automatically update the remote URL in your gitconfig.

To add a new remote for HTTPS (you will need to configure an AppPassword for authentication as username/password is no longer supported):

git remote add origin https://USERNAME:APP_PASSWORD@bitbucket.org/username/reposlug.git 

For SSH, it will look a little different:

git remote add origin ssh://USERNAME@bitbucket.org/WORKSPACEID/REPOSLUG.git

NOTE: you will need to substitute in the values specified above (ie username/AppPassword/workspaceID/reposlug)

The following article explains this in more detail:
https://www.atlassian.com/git/tutorials/syncing

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events