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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,467,470
Community Members
 
Community Events
177
Community Groups

large size file uploaded success but file not found in bitbucket

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

0 votes
Pramodh M Community Leader Jan 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

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events