Skilled Engg

What command would you use to switch branches in Git?

1 month ago | [YT] | 17



@KeshavKumar-gc9pu

We can use git switch too

1 month ago | 1  

@bizy1094

NAME git-switch - Switch branches SYNOPSIS git switch [<options>] [--no-guess] <branch> git switch [<options>] --detach [<start-point>] git switch [<options>] (-c|-C) <new-branch> [<start-point>] git switch [<options>] --orphan <new-branch> DESCRIPTION Switch to a specified branch. The working tree and the index are updated to match the branch. All new commits will be added to the tip of this branch. git documentation

1 month ago | 3

@omarebrahim9962

git switch -c and I can use git checkout -b

1 month ago | 0

@HeitorYT

`git checkout <branch>` is for OGs

1 month ago | 0