Auto-sync: 2026-02-19 07:50:01
This commit is contained in:
@@ -52,6 +52,9 @@ if [[ -n $(git status --porcelain) ]]; then
|
||||
echo -e "${YELLOW}Pushing to Gitea...${NC}"
|
||||
# リモートURLにトークンが含まれていない場合、プッシュに失敗する可能性がある
|
||||
# ここでは既存のoriginを使用
|
||||
git pull --rebase origin main || {
|
||||
echo -e "${RED}Failed to pull from remote. Trying push anyway...${NC}"
|
||||
}
|
||||
git push origin main || {
|
||||
echo -e "${RED}Failed to push. Need credentials in git remote url or credential helper.${NC}"
|
||||
echo -e "${YELLOW}Hint: git remote set-url origin https://<token>@gitea.keinafarm.net/...${NC}"
|
||||
|
||||
Reference in New Issue
Block a user