11 lines
253 B
Bash
Executable File
11 lines
253 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
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 "Now pull and checkout remote branches."
|
|
} |