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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to get project from .git folder

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 Leader Nov 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?

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
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,884 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you