Reputation: 23036
git lfs
operation will be broken every three months. git
alone uses the default built windows credential mechanism so git pull
can survive such password-change and only at the very end of git pull
process the git lfs operation kicks in and then fail, leaving my huge git repo in a messy stage, with hundreds of changed or untracked files.So, is there any simple git lfs command I can use prior to git pull
, to check/verify? I tried git lfs pull
but that one does not ask for credentials.
Upvotes: 1
Views: 3030
Reputation: 1326576
Our company has a policy to force us to change passwords every three months. So git lfs operation will be broken every three months.
It should not be broken, because Git credentials should use PAT (see "Creating a personal access token for the command line"), not Windows passwords.
That way, Windows passwords keep changing, but your PAT remains constant (and can be revoked/replaced at any time).
Upvotes: 1