GitLab - Strange Icon and Entry after corrupt commit

前端 未结 2 1060
孤街浪徒
孤街浪徒 2020-12-18 03:48

I tried to find a description for the following gitlab entry in my repo (in files-view):

\"Screenshot

2条回答
  •  再見小時候
    2020-12-18 04:12

    It is a git submodule, and you can type:

    git ls-tree HEAD -- ws-dom-full
    

    You will see a gitlink, that is a special entry in the index which records the sha1 of the submodule repo. (Mode 160000)

    When you clone the parent repo, that folder is empty.
    You need:

    git submodule update --init
    

    And you will see the submodule content then.

    To remove a submodule (from the index and the disk):

    git submodule deinit -- ws-dom-full
    git rm -- ws-dom-full
    git add -u .
    git commit -m "Remove ws-dom-full submodule"
    git push
    

提交回复
热议问题