
git-branch
List of commands for git-branch:
-
git-branch:tldr:0f237 git-branch: Create new branch based on the current commit.$ git branch ${branch_name}try on your machineexplain this command
-
git-branch:tldr:10939 git-branch: List which branches include a specific Git commit in their history.$ git branch --all --contains ${commit_hash}try on your machineexplain this command
-
git-branch:tldr:41ba3 git-branch: Show the name of the current branch.$ git branch --show-currenttry on your machineexplain this command
-
git-branch:tldr:470eb git-branch: List all branches (local and remote; the current branch is highlighted by `*`).$ git branch --alltry on your machineexplain this command
-
git-branch:tldr:6a51b git-branch: Create new branch based on a specific commit.$ git branch ${branch_name} ${commit_hash}try on your machineexplain this command
-
git-branch:tldr:7c6d4 git-branch: Delete a local branch (must not have it checked out to do this).$ git branch -d ${branch_name}try on your machineexplain this command
-
git-branch:tldr:c8a53 git-branch: Delete a remote branch.$ git push ${remote_name} --delete ${remote_branch_name}try on your machineexplain this command
-
git-branch:tldr:f64dc git-branch: Rename a branch (must not have it checked out to do this).$ git branch -m ${old_branch_name} ${new_branch_name}try on your machineexplain this command