Git - Remote Repositories
You cloned a repo and want to track a remote branch
feature-x without switching branches. Which command is correct?feature-x without switching branches. Which command is correct?git branch --track feature-x origin/feature-x creates a local branch tracking remote without switching.git checkout feature-x origin/feature-x is invalid syntax; git branch feature-x creates branch from current HEAD but does not set tracking; git fetch only downloads data.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions