Files
svr/usr/bin/gitmain
T
2026-01-23 08:55:18 +01:00

11 lines
170 B
Bash
Executable File

#!/bin/bash
gitmain ()
{
if [ -z "$1" ]; then
git checkout main;
git reset --hard "$1";
git push origin main --force;
fi
}
gitmain "$@"