git_checkout_to_main.sh
· 104 B · Bash
Raw
#!/bin/bash
git checkout $(git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@')
| 1 | #!/bin/bash |
| 2 | git checkout $(git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@') |
| 3 |