Forums

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

How to get project from .git folder

Alexander Goryushkin
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!
November 16, 2020

Good day everyone! I'm new to git and bitbucket, please help me with one question. I created a contract with one customer and he gave me access to bitbucket with a repository. I cloned this remote repository to my computer, but there is only a .gitignore file and a hidden .git folder with files. How can I unpack this project to my folder now? I would be very grateful if you can help

1 answer

1 accepted

0 votes
Answer accepted
Hana Kučerová
Community Champion
November 16, 2020

Hi @Alexander Goryushkin ,

welcome to the Atlassian Community!

If you have already cloned the repository, there are no additional steps, you've got the whole copy of the remote repository.

If you are sure, there should be some code and you're not able to see it, probably it is in another branch (after the clone you probably see content of master or develop branch).

Maybe it will be the best to search through the remote repository in Bitbucket - what you are able to see in Branches and Commits sections to get the information, to which branch(es) your customer contributed.

Then when you find the right branch, switch (= checkout) to it locally.

Have you installed any GIT client?

Alexander Goryushkin
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!
November 17, 2020

Hello, Hana. Thank you for your help!

I have Sourcetree installed. And there are no other branches visible here. But the .git folder contains 50MB files. And in .git there is a folder 'objects\pack', which contains the largest file with a 50MB extension .pack and a .idx file.
But bitbucket has another branch, production. I'd rather ask the customer about all this :) Thanks for the help again

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events