简体   繁体   中英

Git LFS Push stuck

Every time when i try to push rep wшth lfs i stucked at same file.

Here log

$ git push -u origin --all
warning: redirecting to https://git.gamewheelstudio.ru/gamewheelstudio/Atrophia.git/
Uploading LFS objects:  92% (1283/1401), 8.3 GB | 0 B/s

Other repos without lfs works fine

PS I pushed already existing rep to another server. And also renaimed old rep to origin-old

I used method from gitlab that works fine for repos w/out lfs

cd existing_repo
git remote rename origin old-origin
git remote add origin linkToProject
git push -u origin --all
git push -u origin --tags

And also try it with ssh and http too

Problem step is "git push -u origin --all"

Sometimes, getting the files from the server may simply be very slow and take a long time, and you just have to wait for it to finish. You do not have to accept this, but it may be all you can do or may have time for in some situations.

If you are unsure whether it is stuck or just slow, check the answer given down to see what the command is doing while it is "stuck".

The way you'd go about debugging this is to set GIT_TRACE=1, GIT_TRANSFER_TRACE=1, and GIT_CURL_VERBOSE=1 in the environment when performing your Git operation. (If you're using Git Bash, you can just prepend those, space-separated, to the git clone command.).

That will let you see if Git LFS is actually starting up and making progress. If so, you'll be able to see the requests being made and if there's a problem with them.

If it's not, then things are trickier. We have seen some cases where people using a non-default antivirus can see breakage because Git LFS is written in Go, and Go binaries tend to have unconventional structures. Its possible endpoint monitoring software on Windows could do the same thing. In either case, you should remove the affected software, reboot, and use just the default antivirus instead.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM