Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bitbucket docs - "add remote": executed from a working vs bare repository; what is the difference?

DS
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!
June 3, 2018

I have a small project on my laptop under Git. The remote, bare repository is on an SD card.

I have decided to move the remote to Bitbucket so I followed this Bitbucket doc: 

Import an existing Git project into Bitbucket Server

This doc tells me to add the remote repository from a bare one, so I CD onto the SD card and then issued the "add remote"; this worked. (If I had not had the bare remote locally the doc tells me to clone the existing remote first as a bare remote.)

But I also tried the same command from the working repository which also seemed to work.

Sometimes it's helpful for docs to explain why an obvious path is not the correct way to the one described.

So, please, what is the difference between the two methods?

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events