Tag: git checkout

  • #git switch to branch without merge on local repo

    To switch from master to a branch or branch to another without merge. git branch*master $ git fetch origin <new_branch> $ git checkoutBranch legacy set up to track remote branch legacy from origin.Switched to a new branch ‘new_branch’ $ git pull $ git branch* new_branchmaster