简体   繁体   English

git lfs凭证检查命令

[英]git lfs credential check command

  • Our company has a policy to force us to change passwords every three months.我们公司有一项政策强制我们每三个月更改一次密码。 So git lfs operation will be broken every three months.所以git lfs操作每三个月就会断掉一次。
  • The problem is that 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. The problem is that 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阶段,有数百个已更改或未跟踪的文件。

So, is there any simple git lfs command I can use prior to git pull , to check/verify?那么,在git pull之前我可以使用任何简单的 git lfs 命令来检查/验证吗? I tried git lfs pull but that one does not ask for credentials.我试过git lfs pull但那个不要求提供凭据。

Our company has a policy to force us to change passwords every three months.我们公司有一项政策强制我们每三个月更改一次密码。 So git lfs operation will be broken every three months.所以git lfs操作每三个月就会断掉一次。

It should not be broken, because Git credentials should use PAT (see " Creating a personal access token for the command line "), not Windows passwords.它不应该被破坏,因为 Git 凭据应该使用 PAT(请参阅“ 为命令行创建个人访问令牌”),而不是 Windows 密码。

That way, Windows passwords keep changing, but your PAT remains constant (and can be revoked/replaced at any time).这样,Windows 密码会不断变化,但您的 PAT 保持不变(并且可以随时撤销/替换)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM