.git broken, restart
This commit is contained in:
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
gitmain ()
|
||||
{
|
||||
if [ -z "$1" ]; then
|
||||
git checkout main;
|
||||
git reset --hard "$1";
|
||||
git push origin main --force;
|
||||
fi
|
||||
}
|
||||
gitmain "$@"
|
||||
Reference in New Issue
Block a user