git make local branch tracking origin git branch --set-upstream master origin/master you obtain the same result as initial cloning