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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.