You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo "[Error] Due to a change in the workflow file of the upstream repository, GitHub has automatically suspended the scheduled automatic update. You need to manually sync your fork. Please refer to the project README.md for instructions. "
40
-
exit 1
31
+
if git diff --quiet HEAD upstream/main; then
32
+
# 内容和上游一致,直接对齐,顺带清理历史分叉留下的多余 merge commit
33
+
git reset --hard upstream/main
34
+
git push --force-with-lease origin main
35
+
else
36
+
# 有本地修改,保持原来的合并方式,不覆盖任何人的改动
37
+
git pull --no-rebase upstream main && git push origin main || {
0 commit comments