Summary Files CommitsBranches @commit@diff
path: root/toggle_repo.sh
diff options
context:
space:
mode:
1 files changed, 7 insertions, 0 deletions
-rwxr-xr-xtoggle_repo.sh7
diff --git a/toggle_repo.sh b/toggle_repo.sh
new file mode 100755
index 0000000..ffbcb57
--- /dev/null
+++ b/toggle_repo.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+if [[ -d ".git" ]]; then
+ sudo mv .git .git.disabled
+else
+ sudo mv .git.disabled .git
+fi