Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git LFS asking for passphrase for every tracked file

Tags:

git

git-lfs

I am using Git LFS with Bitbucket using OSX (although i found the same issue with Ubuntu).

My repo contains many files stored using Git LFS

When I do a git clone, it asks for my passphrase for EVERY tracked file using Git LFS. This is a huge issue as I can have potentially hundreds of files stored using Git LFS.

Note that there is no problems regarding files that are not tracked using Git LFS.

How can I fix this issue?

like image 239
Yahya Uddin Avatar asked Feb 24 '17 01:02

Yahya Uddin


1 Answers

I am surprised that other people did not have this question.

The answer is to use:

  • git lfs clone instead of git clone
  • git lfs pull instead of git pull

This also improves performance by using parallelisation.

For more information, see: https://www.atlassian.com/git/tutorials/git-lfs#speeding-up-clones

like image 69
Yahya Uddin Avatar answered Oct 12 '22 00:10

Yahya Uddin