1 2 3 4 5 6 7
#!/bin/bash if [ -d ".git" ]; then sudo mv .git .git.disabled else sudo mv .git.disabled .git fi