I decided to try git lfs on gitlab. I noticed that it does not work with ssh, so I decided to use https for it. Push works very well, but when I tried to clone my project, it asked me to enter a username and password for each file.
This is annoying. Is there any workaround?
EDIT 2018
This problem persists, where is the real solution? Is there a simple and direct recipe for this?
Links https://git-scm.com/docs/gitcredentials and git-lfs / wiki / Tutorial is something but not an objective solution.
The situation described by my git lfs env ,
git-lfs/2.4.0 (GitHub; linux amd64; go 1.8.3) git version 2.7.4 LocalWorkingDir= LocalGitDir= LocalGitStorageDir= LocalMediaDir=lfs/objects LocalReferenceDir= TempDir=lfs/tmp ConcurrentTransfers=3 TusTransfers=false BasicTransfersOnly=false SkipDownloadErrors=false FetchRecentAlways=false FetchRecentRefsDays=7 FetchRecentCommitsDays=0 FetchRecentRefsIncludeRemotes=true PruneOffsetDays=3 PruneVerifyRemoteAlways=false PruneRemoteName=origin LfsStorageDir=lfs AccessDownload=none AccessUpload=none DownloadTransfers=basic UploadTransfers=basic git config filter.lfs.process = "git-lfs filter-process" git config filter.lfs.smudge = "git-lfs smudge -- %f" git config filter.lfs.clean = "git-lfs clean -- %f"
and when I do git clone https://github.com/myPrivate/project1 , the process of cloning the problem is not completed (error) and was giving usernae and password all the time ...
Problems also when trying to execute credentials (see issue # 2223 , etc.)
Report Attempt:
git config credential.helper does not display anything, empty message.
git config -f .lfsconfig lfs.url https://github.com/myPrivate/MyProj1 accepts something ... So, browser URL or .git URL?
After it, the git add .lfsconfig says "fatal: not a git repository (or any of the parent directories) :. git" in both cases (URL with or without .git)
git config credential.https://github.com/myPrivate/MyProj1 myusername say "fatal: not in the git directory", but of course I need to clone first (!) ..
...
source share