feat: wrap scripts in functions for better modularity and reusability

This commit is contained in:
Janik von Rotz committed 2026-02-05 17:31:59 +01:00
1 parent 7682c642ed
commit e4eaab9519
4 files changed
+44 -36

No files matched your search

+7 -5
View File
@@ -1,9 +1,11 @@
#!/usr/bin/env bash
echo "Fetch with unshallow..."
git fetch --unshallow
unshallow-git-folder(){
echo "Fetch with unshallow..."
git fetch --unshallow
echo "Fix origin fetch config."
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
echo "Fix origin fetch config."
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
echo "Now pull and checkout remote branches."
echo "Now pull and checkout remote branches."
}