Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,363,951
Community Members
 
Community Events
168
Community Groups

My cloned repository looks nothing like the repository on bitbucket

Edited

Hi all,
I am new to git, i set up sourcetree with bitbucket to manage my unity project. I have been commiting changes frequently as a just incase. I started about 6 weeks ago.

Yesterday my dell laptop black screened for no reason (its 6 weeks old also).

Luckily I have been using bitbucket and sourcetree to save my details. The project looks like this in bitbucket with an assets folder etc etc.

Any idea why or how i can get the information that is on bitbucket onto my PC?? rather than this clone that looks nothing like the repository?

Thanks in advance. Sorry I am very new to all the GIT and just set it up as an emergency. I did not expect my brand new laptop to break.

 

 

2 answers

0 votes

Hey @Ryan Wright 

Welcome to Atlassian Community !!

Looks like you have done bare clone hence local folder structure has git files. Can you mention which command did you use while cloning the repository ?

Usually I do it from git bash vis git commands, the command I use is would look like this

git clone https://username@bitbucket.org/teamsinspace/documentation-tests.git

PFA

Picture1.png

Picture2.png

 

And those pack files are like zip files of multiple objects, which git can extract when needed.

More about git object, packs in this article https://alblue.bandlem.com/2011/09/git-tip-of-week-objects-and-packfiles.html

Hope this information helps.

 

Regards,

Vishwas

For anyone else that may look at this, all i had to do was "check out" the repository locally and it did the job.
This is probably a super basic thing but I am very new to GIT. At least the issue helped me to understand a bit more about it and I am super happy that I had made the bitbucket repository and commited often.

Vishwas Community Leader Jan 02, 2022

yes, git checkout would the would update the current working directory from the remote branch. 

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events