"There was an error pushing commits to GitHub" for LFS-enabled repo #21646
-
When importing a public LFS-enabled GitHub repository using GitHub.com’s built-in import tool, after choosing to include the LFS files, I get the following message:
Upon clicking “Restart”, the same error occurs. The public repository I am trying to import is the following: github.comApress/repo-with-large-file-storageAn example repo using Git Large File Storage (LFS) I am trying to import it into a private repository for testing purposes (to test out git-lfs with authentication). Is this error a known issue? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
👋 Welcome! Yes - this is a known issue, and I’ve just added this to the issue so we can document it better. Our import tool is more for importing from other version control systems than it is for git repositories. As such, it doesn’t know what to do with lfs in the origin repository. It can recognise there are large files to handle with lfs, but when those large files are already handled as lfs in the origin repository, it all falls down. It’s probably far simpler to clone the repository to your local system and then push it as a new repository in your GitHub account. This article here might help: docs.github.comDuplicating a repository - GitHub Docs//docs.github.com/en/github/creating-cloning-and-archiving-repositories/duplicating-a-repository |
Beta Was this translation helpful? Give feedback.
👋 Welcome!
Yes - this is a known issue, and I’ve just added this to the issue so we can document it better.
Our import tool is more for importing from other version control systems than it is for git repositories. As such, it doesn’t know what to do with lfs in the origin repository.
It can recognise there are large files to handle with lfs, but when those large files are already handled as lfs in the origin repository, it all falls down.
It’s probably far simpler to clone the repository to your local system and then push it as a new repository in your GitHub account.
This article here might help:
docs.github.com
Duplicating a repository - GitHub Docs
//docs.github.com/en/github/creatin…