Make this file executable and add it to your path
grco [some-text]
#!/bin/bash | |
git checkout $(git branch -ra | grep $1 | head -n 1 | awk -F'/' '{ print $(NF-1)"/"$(NF-0) }') |
@jmervine might want to change how the awk works. I tried to checkout 'dev' for 'develop' and it added a /
@wookimiii ^___^