Last active 6 days ago

botanikanet revised this gist 6 days ago. Go to revision

1 file changed, 2 insertions

git_checkout_to_main.sh(file created)

@@ -0,0 +1,2 @@
1 + #!/bin/bash
2 + git checkout $(git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@')
Newer Older