本文介绍了尝试使用git lfs git将三个大文本文件推送到Github的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows下安装了 git lfs v2.3.4,并使用以下命令使我的存储库对所有 .txt 扩展名文件使用 lfs 正在关注.

After installing git lfs v2.3.4 for Windows, and enabling my repo to use lfs on all my .txt extension files using the following.

  1. git lfs track"* .txt"
  2. git add .gitattributes
  3. 在我的.gitattributes中, *.txt filter = lfs diff = lfs merge = lfs -text

当我尝试进行 git add. git commit -m初始提交" ,然后最后 git push 时,出现以下错误:

When I try to git add ., git commit -m "initial commit", then finally git push I get the following error:

Remote "origin" does not support the LFS locking API. Consider disabling it with:
  $ git config lfs.https://github.com/0xdec0de5/super_kali_wordlist.git/info/lfs.locksverify false

运行以下命令后, git config lfs.locksverify false

我收到以下错误:

batch response: Git credentials for https://github.com/0xdec0de5/super_kali_wordlist.git not found.
error: failed to push some refs to 'https://github.com/0xdec0de5/super_kali_wordlist.git'

任何帮助您解决该错误的帮助都将不胜感激!

Any help to resolve the error would be appreciated!

推荐答案

在工作文件夹中使用"git init",然后使用"git add remote origin(您的原始地址)",然后使用"git add",而不是使用它们.",然后使用"git commit -m(带引号的消息)"(例如"message")进行提交,然后通过"git push origin master"将其推送到您的存储库

Instead of using those, use " git init" in working folder, then "git add remote origin (your origin address)", after that "git add . " then commit by using "git commit -m (message with quotes)" like "message" then push to your repository by "git push origin master"

这篇关于尝试使用git lfs git将三个大文本文件推送到Github的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-18 23:45