Git错误Corrupt loose object解决
Git错误Corrupt loose object解决 reference-site-list
StackOverflow上给出的简洁方案 1 2 3 4 5 6 rm -fr .gitgit init git remote add origin [your-git-remote-url] git fetch git reset --mixed origin/master git branch --set-upstream-to=origin/master master
gitlab-runner上的错误 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Running with gitlab-runner 14.0.1 (c1edb478) on debian10 y6tSEeXS Preparing the "shell" executor 00:00 Using Shell executor... Preparing environment 00:00 Running on debian10... Getting source from Git repository 00:00 Fetching changes with git depth set to 50... Reinitialized existing Git repository in /home/gitlab-runner/builds/y6tSEeXS/0/xplorist/keep/.git/ error: object file .git/objects/c1/fd256883a685911b12fd0ecd9070629c7c5ec8 is empty fatal: loose object c1fd256883a685911b12fd0ecd9070629c7c5ec8 (stored in .git/objects/c1/fd256883a685911b12fd0ecd9070629c7c5ec8) is corrupt ERROR: Job failed: exit status 1
针对gitlab-runner的解决办法 1 2 3 4 5 cd /home/gitlab-runner/builds/y6tSEeXS/0/xploristrm -rf keeprm -rf keep.tmp
本文标题:Git错误Corrupt loose object解决
本文作者:Xplorist
创建时间:2021-11-09 11:20:00
本文链接:https://xplorist.tech/2021/11/09/a766b538ea65/
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
$tools-item-width = 2.2rem
$tools-item-font-size = 1.1rem
$tools-item-border-radius = 0.1rem
.side-tools-container {
position relative
.tools-item {
width $tools-item-width
height $tools-item-width
margin-bottom 0.2rem
color var(--default-text-color)
font-size $tools-item-font-size
background var(--background-color)
border-right none
border-radius $tools-item-border-radius
box-shadow 0.1rem 0.1rem 0.2rem var(--shadow-color)
cursor pointer
i {
color var(--default-text-color)
}
&:hover {
color var(--background-color)
background var(--primary-color)
box-shadow 0.2rem 0.2rem 0.4rem var(--shadow-color)
i {
color var(--background-color)
}
}
+keep-tablet() {
width $tools-item-width * 0.9
height $tools-item-width * 0.9
margin-bottom 0.2rem
font-size $tools-item-font-size * 0.9
}
&.rss {
a {
width 100%
height 100%
border-radius $tools-item-border-radius
&:hover {
color var(--background-color)
background var(--primary-color)
box-shadow 0.2rem 0.2rem 0.4rem var(--shadow-color)
}
}
}
}
.side-tools-list {
transform translateX(100%)
opacity 0
transition-t("transform, opacity", "0, 0", "0.2, 0.2", "linear, linear")
.tool-expand-width {
+keep-tablet() {
display none
}
}
&.show {
transform translateX(0)
opacity 1
}
}
.exposed-tools-list {
if (hexo-config('style.scroll.percent.enable') == true) {
.tool-scroll-to-top {
display none
&.show {
display flex
}
&:hover {
.percent {
display none
}
.arrow-up {
display flex
}
}
.arrow-up {
display none
}
.percent {
display flex
font-size 1rem
}
}
}
}
}