尝试使用git lfs将三个大文本文件推送到Github

时间:2018-02-28 15:42:56

标签: git github git-lfs

安装git lfs v2.3.4 for Windows,并使用以下内容使我的仓库在我的所有lfs扩展文件上使用.txt

  1. git lfs track "*.txt"
  2. git add .gitattributes
  3. 在我的.gitattributes中,*.txt filter=lfs diff=lfs merge=lfs -text
  4. 当我尝试git add .git commit -m "initial commit"时,最后git push我收到以下错误:

    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'
    

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

1 个答案:

答案 0 :(得分:0)

而不是使用那些,在工作文件夹中使用“git init”,然后在“git add。”之后使用“git add remote origin(你的原始地址)”,然后使用“git commit -m(带引号的消息)提交)“喜欢”消息“然后通过”git push origin master“推送到您的存储库