Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
8a0cd2e9
Commit
8a0cd2e9
authored
May 27, 2021
by
Nourdin el Bacha
Committed by
Amy Qualls
May 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add troubleshooting for untracked LFS pointers
parent
2ee7ccf6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
doc/topics/git/lfs/index.md
doc/topics/git/lfs/index.md
+28
-0
No files found.
doc/topics/git/lfs/index.md
View file @
8a0cd2e9
...
...
@@ -161,6 +161,34 @@ Feature.disable(:include_lfs_blobs_in_archive)
## Troubleshooting
### Encountered `n` file(s) that should have been pointers, but weren't
This error indicates the file (or files) are expected to be tracked by LFS, but for
some reason the repository is not tracking them as LFS. This issue can be one
potential reason for this error:
[
Files not tracked with LFS when uploaded through the web interface
](
https://gitlab.com/gitlab-org/gitlab/-/issues/326342#note_586820485
)
To resolve the problem, migrate the affected file (or files) and push back to the repository:
1.
Migrate the file to LFS:
```
shell
git lfs migrate import
--yes
--no-rewrite
"<your-file>"
```
1.
Push back to your repository:
```
shell
git push
```
1.
(Optional) Clean up your
`.git`
folder:
```
shell
git reflog expire
--expire-unreachable
=
now
--all
git gc
--prune
=
now
```
### error: Repository or object not found
There are a couple of reasons why this error can occur:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment