Git Branch Commands
git branch
The git branch
command is used to manage branches in a Git repository. It can be used to create, list, rename, delete, and switch branches.
The output of git branch
will show the list of branches and indicate the currently active branch with an asterisk (*
).
git diff
The git diff
command is used to show the difference between two points in a Git repository. It can be used to compare changes between two branches, commits, or even two different files.
git show
The git show
command is used to show information about a specific Git object, such as a commit, tag, or tree. It can be used to view the details of a commit, including the changes made to the files in that commit.
Last updated