1 2 3 4 5 6 7
#!/usr/bin/env fish git checkout $argv[1] or exit 1 git submodule foreach "git checkout $argv[1]" or exit 1