Skip to content

git fsck warnings #312

Description

@ellerh

Running git fsck on a freshly cloned repository

git clone https://github.com/Ravenbrook/mps.git
cd mps
git fsck

displays many warnings like

warning` in tree 992cc7bd9a0c98b43a432f97a6d24087cd66ed79: gitignoreSymlink: .gitignore is a symlink

We ended up rewriting the git history because we didn't want to have those warnings in our repo.
We used this for the renaming:

git filter-repo --force \
                --path-rename .gitignore:.renamed-gitignore \
                --path-rename code/.gitignore:code/.renamed-gitignore \
                --path-rename code/w3mv/.gitignore:code/w3mv/.renamed-gitignore \
                --path-rename example/scheme/.gitignore:example/scheme/.renamed-gitignore \
                --path-rename manual/.gitignore:manual/.renamed-gitignore \
                --path-rename manual/source/design/.gitignore:manual/source/design/.renamed-gitignore \
                --path-rename tool/.gitignore:tool/.renamed-gitignore
 
git mv .renamed-gitignore .gitignore
git mv code/.renamed-gitignore code/.gitignore
git mv code/w3mv/.renamed-gitignore code/w3mv/.gitignore
git mv example/scheme/.renamed-gitignore example/scheme/.gitignore
git mv manual/.renamed-gitignore manual/.gitignore
git mv manual/source/design/.renamed-gitignore manual/source/design/.gitignore
git mv tool/.renamed-gitignore tool/.gitignore
git commit -m "Un-rename .gitignore"
 
git fsck

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions