The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

large size file uploaded success but file not found in bitbucket

Glocom
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!
January 27, 2022

We tried to push 16GB Single zip file the push is completed successfully, After Completion wehn we check the repository in bibucket it's empty.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Pramodh M
Community Champion
January 27, 2022

Hi @Glocom 

Welcome to the Community!!

16GB? what are you trying to put there!!

Anyways 16GB at once cannot be pushed to the remote repo.

Follow the guide here to track the LFS files and push the commits in stages

REMOTE="https://username:password@git-clone-url"
BRANCH=$(git rev-parse --abbrev-ref HEAD)
BATCH_SIZE=100

# check if the branch exists on the remote
if git show-ref --quiet --verify refs/remotes/$REMOTE/$BRANCH; then
    # if so, only push the commits that are not on the remote already
    range=$REMOTE/$BRANCH..HEAD
else
    # else push all the commits
    range=HEAD
fi
# count the number of commits to push
n=$(git log --first-parent --format=format:x $range | wc -l)
# push each batch
for i in $(seq $n -$BATCH_SIZE 1); do
    # get the hash of the commit to push
    h=$(git log --first-parent --reverse --format=format:%H --skip $i -n1)
    echo "Pushing $h..."
    git push $REMOTE $h:refs/heads/$BRANCH
done
# push the final partial batch
git push $REMOTE HEAD:refs/heads/$BRANCH

Remember to check the LFS files with git lfs ls-files command

The above will push the repo from local to remote from the default branch

Let me know if you have any queries

Thanks

TAGS
AUG Leaders

Atlassian Community Events