Initial commit

This commit is contained in:
admin
2025-12-08 18:01:04 +08:00
parent 0c5d90c12b
commit 69733e8d4c

View File

@@ -132,12 +132,12 @@ def main():
# We can try checking current branch name.
current_branch = run_command("git rev-parse --abbrev-ref HEAD")
if current_branch:
if run_command(f"git push -u origin {current_branch}") is None:
if run_command(f"git push -u origin {current_branch} -f") is None:
print("Push failed.")
else:
# Fallback if we couldn't get branch name
if run_command("git push -u origin master") is None:
run_command("git push -u origin main")
if run_command("git push -u origin master -f") is None:
run_command("git push -u origin main -f")
if __name__ == "__main__":
main()