Azure DevOps Git Repo SSH failed to download lfs files while https works fine - azure-devops

So I'm trying to clone my Azure DevOps Git repo. If I use SSH, I get the following error:
$ git clone <ssh-url> az-lynx
Cloning into 'az-lynx'...
remote: Azure Repos
remote: Found 177467 objects to send. (371 ms)
Receiving objects: 100% (177467/177467), 395.46 MiB | 7.01 MiB/s, done.
Resolving deltas: 100% (130228/130228), done.
Updating files: 100% (13436/13436), done.
Downloading /jquery-1.10.2.min.map (140 KB)
Error downloading object: /jquery-1.10.2.min.map (3b5c544): Smudge error: Error downloading /jquery-1.10.2.min.map (3b5c544e238a129e2b7296ad731f8963ea092843967a4bbc2d748e471ae115b9): batch request: unexpected end of JSON input
Errors logged to C:\projects\az-lynx\.git\lfs\logs\20210926T085414.2333448.log
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: /jquery-1.10.2.min.map: smudge filter lfs failed
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
Now, if I use HTTPS instead, it works just fine with the file downloaded correctly
got clone <https-url>
Cloning into 'az-lynx'...
remote: Azure Repos
remote: Found 177467 objects to send. (428 ms)
Receiving objects: 100% (177467/177467), 395.46 MiB | 8.64 MiB/s, done.
Resolving deltas: 100% (130228/130228), done.
Updating files: 100% (13436/13436), done.
Filtering content: 100% (4253/4253), 263.01 MiB | 7.52 MiB/s, done.
Aren't both SSH and HTTPS pointing to the same repo? Why SSH is complaining missing files while HTTPS works just fine?

Related

I am not able to push the code changes on github pages?

I have deployed the code once on github using github pages and now i have maked the changes in some of the code and now i am not able to push the code .I deleted the all branches and code on repo and did the process once again but still on live website i am not getting any changes .
PS D:\VJTI_Racing_Website_2.0\frontend> git add .
>> git commit -m "updated"
>> git push origin master
On branch gh-pages
nothing to commit, working tree clean
Enumerating objects: 26890, done.
Counting objects: 100% (26890/26890), done.
Delta compression using up to 8 threads
Compressing objects: 100% (21199/21199), done.
Writing objects: 100% (26890/26890), 779.96 MiB | 1.96 MiB/s, done.
Total 26890 (delta 4725), reused 26890 (delta 4725), pack-reused 0
remote: Resolving deltas: 100% (4725/4725), done.
remote: warning: File node_modules/.cache/default-development/3.pack is 52.95 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB
remote: error: Trace: d119776a9de8bb6b95dccf52e4031387455d238a7a7367d558a094750a2328de
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File node_modules/.cache/default-development/0.pack is 490.10 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
To https://github.com/vjtiracing/VJTI_Racing_Website_2.0.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://github.com/vjtiracing/VJTI_Racing_Website_2.0.git'
the error showing is of large file but I deleted the node modules file and also cleared the cache please someone help me out here.

i have pushed my website locally on github after creating an empty repository but the repository is still blank

I have a folder with codes, i pushed it on github after creating a repository but the process was successful but i can not see any file in the repository, any help guys, this is my cli codes
SydoTech#DESKTOP-PUHK97G MINGW64 /d/james/ict-specialists (master)
$ git remote add origin https://github.com/Kato669/ict-specialist-website.git
SydoTech#DESKTOP-PUHK97G MINGW64 /d/james/ict-specialists (master)
$ git push origin main
error: src refspec main does not match any
error: failed to push some refs to 'https://github.com/Kato669/ict-specialist-website.git'
SydoTech#DESKTOP-PUHK97G MINGW64 /d/james/ict-specialists (master)
$ git push origin master
Enumerating objects: 1383, done.
Counting objects: 100% (1383/1383), done.
Delta compression using up to 4 threads
Compressing objects: 100% (1380/1380), done.
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
send-pack: unexpected disconnect while reading sideband packet
Writing objects: 100% (1383/1383), 35.93 MiB | 323.00 KiB/s, done.
Total 1383 (delta 181), reused 0 (delta 0), pack-reused 0
fatal: the remote end hung up unexpectedly
Everything up-to-date
SydoTech#DESKTOP-PUHK97G MINGW64 /d/james/ict-specialists (master)
$

Clone succeeded, but checkout failed

tried to clone a large project at work. It has worked in the past. But my internet was disconnected and I got this error message :
the question is how can I resume the download without loosing the previously downloaded data
$ git clone git#github.com:Unity-Technologies/FPSSample.git
Cloning into 'FPSSample'...
remote: Enumerating objects: 18652, done.
remote: Total 18652 (delta 0), reused 0 (delta 0), pack-reused 18652
Receiving objects: 100% (18652/18652), 213.75 MiB | 214.00 KiB/s, done.
Resolving deltas: 100% (9780/9780), done.
Updating files: 100% (12731/12731), done.
Downloading Assets/Textures/Environment/Props/Doors/Doors_Scifi_A/Door_800x500_Floormat_A/Door_800x500_Floormat_A_MaskMap.tif (8.4 MB)
Error downloading object: Assets/Textures/Environment/Props/Doors/Doors_Scifi_A/Door_800x500_Floormat_A/Door_800x500_Floormat_A_MaskMap.tif (4d90adf): Smudge error: Error downloading Assets/Textures/Environment/Props/Doors/Doors_Scifi_A/Door_800x500_Floormat_A/Door_800x500_Floormat_A_MaskMap.tif (4d90adf4e9dd91dd216d6619bbbbe9cf9589898c7f6f705ed079a4043b8111b7): batch request: ssh: Could not resolve hostname github.com: Name or service not known: exit status 255
Errors logged to C:\Users\momen\OneDrive\Bureau\Fps Sample\FPSSample\.git\lfs\logs\20191221T120849.6912638.log
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: Assets/Textures/Environment/Props/Doors/Doors_Scifi_A/Door_800x500_Floormat_A/Door_800x500_Floormat_A_MaskMap.tif: smudge filter lfs failed
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

Github Desktop and LFS failed to fetch some objects from github.com/.../git/info/lfs

Here is the story, we have GitHub working and are using GitDesktop 1.0.10.
We are also using Git LFS 2.3.0 from https://github.com/blog/2432-git-lfs-2-3-0-released ... two devs are able to clone and push repo without issue, one has issues as follows:
WARNING: 'git lfs clone' is deprecated and will not be updated
with new flags from 'git clone'
'git clone' has been updated in upstream Git to have comparable
speeds to 'git lfs clone'.
'git clone' has been updated in upstream Git to have comparable
speeds to 'git lfs clone'.
Cloning into 'C:\Git\SomeRepo'...
remote: Counting objects: 28847, done.
remote: Compressing objects: 0% (1/331)
remote: Compressing objects: 1% (4/331)
remote: Compressing objects: 2% (7/331)
...
remote: Compressing objects: 98% (325/331)
remote: Compressing objects: 99% (328/331)
remote: Compressing objects: 100% (331/331)
remote: Compressing objects: 100% (331/331), done.
Receiving objects: 0% (1/28847)
Receiving objects: 1% (289/28847)
Receiving objects: 2% (577/28847)
Receiving objects: 3% (866/28847)
...
Receiving objects: 96% (27694/28847), 974.57 MiB | 21.10 MiB/s
Receiving objects: 97% (27982/28847), 974.57 MiB | 21.10 MiB/s
Receiving objects: 98% (28271/28847), 974.57 MiB | 21.10 MiB/s
Receiving objects: 99% (28559/28847), 974.57 MiB | 21.10 MiB/s
remote: Total 28847 (delta 547), reused 598 (delta 424), pack-reused 28092
Receiving objects: 100% (28847/28847), 974.57 MiB | 21.10 MiB/s
Receiving objects: 100% (28847/28847), 979.90 MiB | 20.95 MiB/s, done.
Resolving deltas: 0% (0/16327)
Resolving deltas: 1% (306/16327)
Resolving deltas: 2% (343/16327)
Resolving deltas: 5% (822/16327)
Resolving deltas: 7% (1162/16327)
...
Resolving deltas: 98% (16033/16327)
Resolving deltas: 99% (16175/16327)
Resolving deltas: 100% (16327/16327)
Resolving deltas: 100% (16327/16327), done.
batch response: Git credentials for
https://github.com/SomeOrg/SomeProject.git not found:
exit status 1
batch response: Git credentials for
https://github.com/SomeOrg/SomeProject.git not found:
exit status 1
batch response: Git credentials for
https://github.com/SomeOrg/SomeProject.git not found:
exit status 1
batch response: Git credentials for
https://github.com/SomeOrg/SomeProject.git not found:
exit status 1
batch response: Git credentials for
https://github.com/SomeOrg/SomeProject.git not found:
exit status 1
batch response: Git credentials for
https://github.com/SomeOrg/SomeProject.git not found:
exit status 1
batch response: Git credentials for
https://github.com/SomeOrg/SomeProject.git not found:
exit status 1
batch response: Git credentials for
https://github.com/SomeOrg/SomeProject.git not found:
exit status 1
batch response: Git credentials for
https://github.com/SomeOrg/SomeProject.git not found:
exit status 1
error: failed to fetch some objects from 'https://github.com/SomeOrg/SomeProject.git/info/lfs'
I have tried:
Logging in with working credentials on non-working machine
Uninstalling and reinstalling Github Desktop
Deleting files forcing the reinstall of Github Desktop to ask for settings again
Disabled Firewall
Any help here would be very much appreciated, thanks in advance!
This seems to be a bug described in git-lfs/git-lfs issue 2349 and Git for Windows issue 1192
It could be a bug in the way Git for Windows calls git-lfs.exe: if there is no console to use, there won't be a way to communicate with the user.
But then, maybe it does work with winpty as I suggested earlier (even if the OP indicated that it fails), that's why I want an MCVE.
#dscho I think that this is likely. In my testing, I was unable to get LFS to see a pty/tty when invoked by Git for Windows. I have set up a test repository that I have reproduced the bug with: https://github.com/ttaylorr/lfs-gfw-bug
Still, try and install the latest Git-Credential-Manager-for-Windows.
And/or try the same clone from command-line, after installing the very latest Git for Windows (the 2.15.1.2 one).
The OP OverCodingUnderSleeping adds in the comments:
Oddly enough, seems like switching over to SourceTree from GitHub For Desktop solved it....
That means SourceTree either use the "System" Git or an embedded one, which might not exhibit the same bug: check the settings.

xcdatamodel history causing git push errors

I have enabled history for xcdatamodel file.From the xcode it appears to be one file
from terminal its a set of folders
my.xcdatamodeld/
my 2.xcdatamodel
my.xcdatamodel
I am unable to deliver this to my remote git repository due to this error
indmacsunelama$ git push
Counting objects: 19, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (13/13), done.
Writing objects: 100% (14/14), 34.11 KiB, done.
Total 14 (delta 5), reused 7 (delta 1)
remote: usage: git cat-file (-t|-s|-e|-p|<type>|--textconv) <object>
remote: or: git cat-file (--batch|--batch-check) < <list_of_objects>
remote: <type> can be one of: blob, tree, commit, tag
remote: -t show object type
remote: -s show object size
remote: -e exit with zero when there's no error
remote: -p pretty-print object's content
remote: --textconv for blob objects, run textconv on object's content
remote: --batch show info and content of object standard input
remote: --batch-check show info about objects fed from the standard input
remote: error: hook declined to update refs/heads/master
To git://mylinuxbox.us.spec.com/mobile.git
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'git://mylinuxbox.us.spec.com/mobile.git'
Those errors indicate that you have a buggy hook installed in your remote repository. Check the hooks subdirectory in mobile.git on your remote server and look at the hooks that are enabled. It seems that the hook is misusing git cat-file at some point.