If you want to get a branch from remote, you have to specify the repo with the -t
option.
git checkout -t origin/feature/refactor
You can change origin for whatever the name of your remote is. This command create a new branch in your local repository named feature/refactor
and that branch is going to be connected with your remote branch origin/feature/refactor
that you published before.
There is a command to track also in gitflow, you should try it:
git flow feature track refactor