Thursday, August 21, 2025

Merge branch to main Git

 Merge full branch to main
git fetch --all --prune
# Tạo tag backup trỏ về remote main hiện tại (để có thể rollback)
git tag -a backup/main-override-$(date +%Y%m%d-%H%M%S) -m "backup before override main" rag-backend-remote/main
git switch main
git reset --hard chore/remove-old-translators
git push --force-with-lease rag-backend-remote main
# (tùy chọn) nếu bạn cũng dùng remote ssh cho main, đẩy lên cả remote đó:
# git push --force-with-lease rag-backend-ssh-remote main

No comments:

Post a Comment