I decided to try git lfs on gitlab. I noticed that it doesn't work with ssh so I decided to use https for it. Push works just fine but when I tried to clone my project it asked me for a username and a password for every file.
That's kind of annoying. Is there any workaround to it?
EDIT 2018
This problem persist, where the real solution? There are a simple and direct recipe for it?
The links https://git-scm.com/docs/gitcredentials and git-lfs/wiki/Tutorial have perhaps something, but no objective solution.
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 problem clonning process is not complete (bug), and was giving usernae and password all the time...
Problems also when try to do credentials (see issue #2223, etc.)
Trying report:
git config credential.helper
outputs nothing, empty message.git config -f .lfsconfig lfs.url https://github.com/myPrivate/MyProj1
accepts anything... So, is the browser URL or.git
URL?
After it the commandgit add .lfsconfig
say "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 a git directory", but of course, I need to clone first (!).....