Git LFS in Bitbucket with Sourcetree

Hi, 

So it should be said that I am ultra noob, I am more of an artist than a programmer and so forth. I am currently setting up a game design project in Bitbucket, we usually use Bitbucket for system based stuff with the limited assets we need for testing. The current project we need to move over is way larger than that, around 4.2gb with the gitignore in placce, and around 6gb without it.

So I started off by creating a new repo, got it all setup file wise and such. Then proceeded to move the files I need into that new folder, I setup the git ignore accordingly and then proceeded to setup git lfs via: Repository > Git LFS > Initialize Repository  after this i went through the steps of installing it and then tracking the files I wanted to which are: .fbx .obj .png .jpeg .asset. After this was setup and I could see the git attribuites file ready to commit I then did the very first commit selecting every file and typing in a message as usual and then hitting commit. This took a while as it was 19k items. Everything worked fine, and I proceeded to push it, this also went fine.

But my Git LFS is empty on bitbucket, and the normal storage is 1.2gb full only having files that I didnt mark for git lfs.

So currently I still have all my files locally, but the required files that I tracked with git lfs is not on bitbucket.  

Sorry for the long explanation!  

2 answers

Probably not useful anymore since it's been a while, but since I just ran into that issue and it took me a while to resolve it, in case it can solve some time for someone else...

For me I had to issue a "git lfs push origin master" just prior to "git push". I didn't see any mention of this in the documentation, but without that command my files never made it into bitbucket.

Suggest an answer

Log in or Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

260 views 0 3
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot