Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set "unsafe" Git LFS config items?

Tags:

git

git-lfs

I want to set lfs.activitytimeout in LFS config, however doing this locally results in a warning:

WARNING: These unsafe lfsconfig keys were ignored

How to I set lfs.activitytimeout for a repo?

Edit: As per VonC's answer below, the real culprit is trying to set these values in the .lfsconfig file, not the vanilla .config file. If you set them in the .config file they appear to work.

like image 734
Geordie Avatar asked Jan 21 '26 17:01

Geordie


1 Answers

From git-lfs/git-lfs issue 2636, a git config lfs.activitytimeout xx seems the recommended approach, with the default value being 30 seconds

Check your LFS version first.

A git config -f .lfsconfig though seems limited to those values, as illustrated by issue 4467 and PR 4468.

like image 116
VonC Avatar answered Jan 23 '26 14:01

VonC