git branch --set-upstream master origin/master

you obtain the same result as initial cloning