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 remoteif 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..HEADelse # else push all the commits range=HEADfi# count the number of commits to pushn=$(git log --first-parent --format=format:x $range | wc -l)# push each batchfor 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/$BRANCHdone# push the final partial batchgit 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
It looks like you're new here. Sign in or register to get started.