In windows, I'm not able to get credential helpers to retrieve my credentials.
I installed with the Windows installer and am using git bash.
$ git config -l --show-origin
file:C:/Program Files/Git/etc/gitconfig diff.astextplain.textconv=astextplain
file:C:/Program Files/Git/etc/gitconfig filter.lfs.clean=git-lfs clean -- %f
file:C:/Program Files/Git/etc/gitconfig filter.lfs.smudge=git-lfs smudge -- %f
file:C:/Program Files/Git/etc/gitconfig filter.lfs.process=git-lfs filter-process
file:C:/Program Files/Git/etc/gitconfig filter.lfs.required=true
file:C:/Program Files/Git/etc/gitconfig http.sslbackend=openssl
file:C:/Program Files/Git/etc/gitconfig http.sslcainfo=C:/Program Files/Git/mingw64/etc/ssl/certs/ca-bundle.crt
file:C:/Program Files/Git/etc/gitconfig core.autocrlf=true
file:C:/Program Files/Git/etc/gitconfig core.fscache=true
file:C:/Program Files/Git/etc/gitconfig core.symlinks=false
file:C:/Program Files/Git/etc/gitconfig pull.rebase=false
file:C:/Program Files/Git/etc/gitconfig init.defaultbranch=master
file:C:/Users/Administrator/.gitconfig credential.helper=store
file:.git/config core.repositoryformatversion=0
file:.git/config core.filemode=false
file:.git/config core.bare=false
file:.git/config core.logallrefupdates=true
file:.git/config core.symlinks=false
file:.git/config core.ignorecase=true
$ cat ~/.git-credentials
https://dberenbaum:***@github.com
$ git clone https://www.github.com/dberenbaum/dataset-registry
Cloning into 'dataset-registry'...
warning: redirecting to https://github.com/dberenbaum/dataset-registry.git/
remote: Enumerating objects: 167, done.
remote: Counting objects: 100% (167/167), done.
remote: Compressing objects: 100% (115/115), done.
remote: Total 167 (delta 41), reused 167 (delta 41), pack-reused 0Receiving objeReceiving objects: 100% (167/167), 26.04 KiB | 225.00 KiB/s, done.
Resolving deltas: 100% (41/41), done.
$ dvc import -v https://www.github.com/dberenbaum/dataset-registry use-cases/cats-dogs
2023-06-16 20:41:08,931 DEBUG: v2.57.1 (exe), CPython 3.10.11 on Windows-10-10.0.20348-SP0
2023-06-16 20:41:08,966 DEBUG: command: import -v https://www.github.com/dberenbaum/dataset-registry use-cases/cats-dogs
2023-06-16 20:41:15,310 DEBUG: Removing output 'cats-dogs' of stage: 'cats-dogs.dvc'.
2023-06-16 20:41:15,323 DEBUG: Removing 'C:\Users\Administrator\repo\cats-dogs'
Importing 'use-cases/cats-dogs (https://www.github.com/dberenbaum/dataset-registry)' -> 'cats-dogs'
2023-06-16 20:41:15,417 DEBUG: Computed stage: 'cats-dogs.dvc' md5: '04818bbca125387334761fa24de5759a'
2023-06-16 20:41:15,451 DEBUG: 'md5' of stage: 'cats-dogs.dvc' changed.
2023-06-16 20:41:15,453 DEBUG: Creating external repo https://www.github.com/dberenbaum/dataset-registry@None
2023-06-16 20:41:15,454 DEBUG: erepo: git clone 'https://www.github.com/dberenbaum/dataset-registry' to a temporary dir
2023-06-16 20:41:23,384 ERROR: failed to import 'use-cases/cats-dogs' - SCM error: Failed to clone repo 'https://www.github.com/dberenbaum/dataset-registry' to 'C:\Users\ADMINI~1\AppData\Local\Temp\2\tmp1p9s0y__dvc-clone': No valid credentials provided
Traceback (most recent call last):
File "scmrepo\git\backend\dulwich\client.py", line 49, in _http_request
File "dulwich\client.py", line 2218, in _http_request
dulwich.client.HTTPUnauthorized: No valid credentials provided
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "scmrepo\git\backend\dulwich\__init__.py", line 220, in clone
File "dulwich\porcelain.py", line 514, in clone
File "dulwich\client.py", line 703, in clone
File "dulwich\client.py", line 781, in fetch
File "dulwich\client.py", line 2084, in fetch_pack
File "dulwich\client.py", line 1940, in _discover_references
File "scmrepo\git\backend\dulwich\client.py", line 60, in _http_request
File "dulwich\client.py", line 2218, in _http_request
dulwich.client.HTTPUnauthorized: No valid credentials provided
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "dvc\scm.py", line 160, in clone
File "scmrepo\git\__init__.py", line 142, in clone
File "scmrepo\git\backend\dulwich\__init__.py", line 225, in clone
scmrepo.exceptions.CloneError: Failed to clone repo 'https://www.github.com/dberenbaum/dataset-registry' to 'C:\Users\ADMINI~1\AppData\Local\Temp\2\tmp1p9s0y__dvc-clone'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "dvc\commands\imp.py", line 17, in run
File "dvc\repo\imp.py", line 6, in imp
File "dvc\repo\__init__.py", line 65, in wrapper
File "dvc\repo\scm_context.py", line 151, in run
File "dvc\repo\imp_url.py", line 93, in imp_url
File "funcy\decorators.py", line 47, in wrapper
File "dvc\stage\decorators.py", line 43, in rwlocked
File "funcy\decorators.py", line 68, in __call__
File "dvc\stage\__init__.py", line 609, in run
File "funcy\decorators.py", line 47, in wrapper
File "dvc\stage\decorators.py", line 43, in rwlocked
File "funcy\decorators.py", line 68, in __call__
File "dvc\stage\__init__.py", line 646, in _sync_import
File "dvc\stage\imports.py", line 56, in sync_import
File "dvc\stage\__init__.py", line 500, in save_deps
File "dvc\dependency\repo.py", line 58, in save
File "dvc\fs\dvc.py", line 412, in repo
File "functools.py", line 981, in __get__
File "dvc\fs\dvc.py", line 401, in fs
File "fsspec\spec.py", line 76, in __call__
File "dvc\fs\dvc.py", line 120, in __init__
File "dvc\fs\dvc.py", line 179, in _make_repo
File "contextlib.py", line 135, in __enter__
File "dvc\repo\open_repo.py", line 30, in _external_repo
File "dvc\repo\open_repo.py", line 153, in _cached_clone
File "funcy\decorators.py", line 47, in wrapper
File "funcy\flow.py", line 246, in wrap_with
File "funcy\decorators.py", line 68, in __call__
File "dvc\repo\open_repo.py", line 221, in _clone_default_branch
File "dvc\scm.py", line 165, in clone
dvc.scm.CloneError: SCM error
2023-06-16 20:41:23,417 DEBUG: Analytics is enabled.
2023-06-16 20:41:23,429 DEBUG: Trying to spawn '['daemon', '-q', 'analytics', 'C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\2\\tmp02z6x4vt']'
2023-06-16 20:41:23,554 DEBUG: Spawned '['daemon', '-q', 'analytics', 'C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\2\\tmp02z6x4vt']'