I've created an alias in my .bash_profile
alias gco="git checkout origin/${1}"
but whenever I try to call a command like this:
gco master
it responds with:
error: pathspec 'origin/' did not match any file(s) known to git.
error: pathspec 'master' did not match any file(s) known to git.
Could anyone help me understand why its returning these errors and not just concatenating the text properly? Thanks!