Branching and merging commands

The git branch command is core to the Git version control system. It is used to create, move, rename, delete, and list available branches in a repository. The command has several forms and accepts different options used to set up and configure repository branches. When the git branch command is run on Bash, without specifying an option, the available branches in the repository are listed. This is similar to using the --list option.

To create a new branch, the git branch command is run with the branch name as the argument:

git branch [branch name]

The --delete option is used to delete the branch specified, and the --copy option is used to create a copy of the specified branch alongside its reflog.

To update the ...

Get C# and .NET Core Test Driven Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.