You can simply create a new local branch pointing to the remote branch using any of these commands (the latter will check it immediately):
git branch deploy origin/deploy git checkout -b deploy origin/deploy
However, this will not lead to the configuration of the tracking functions that occur when Git automatically creates a branch for the remote branch. To do this, you need to do the following:
git branch -u origin/deploy
Alternatively, you can do this all in one command, which will be the same as Git:
git checkout -b deploy --track origin/deploy
poke source share