I have created a new branch on my remote, so I would expect to do this:
$ git fetch && git checkout feature/name
However, I get this error:
error: pathspec 'feature/name' did not match any file(s) known to git.
When I run git fetch
on its own, it doesn't return anything, I have also tried git fetch origin
which does not work either.
git remote
returns just the one remote called origin
.
My config looks like this:
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true
[remote "origin"]
url = removed as it is a private repo
fetch = +refs/heads/staging:refs/remotes/origin/staging
[branch "staging"]
remote = origin
merge = refs/heads/staging