feat: wrap scripts in functions for better modularity and reusability
This commit is contained in:
4 files changed
+44
-36
No files matched your search
@@ -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."
|
||||
}
|
||||
Reference in new issue
Block a user