git branch
Aliases related to git branch
Shortcuts
git b
= branch
git bm
= branch –merged
git bnm
= branch –no-merged
git bed
= branch –edit-description
git bsd
= branch –show-description (wishlist)
Branch names
git default-branch
- Get the default branch name.
git current-branch
- Get the current branch name.
git upstream-branch
- Get the upstream branch name.
git topic-base-branch
- Get the topic base branch name.
Branch commits
git branch-commit-first
- Show a branch’s first commit hash (or hashes).
git branch-commit-last
- Show a branch’s last commit hash (or hashes).
git branch-commit-prev
- Show a branch’s previous commit hash (or hashes).
git branch-commit-next
- Show a branch’s next commit hash (or hashes).
Topic branches
git topic-*
- Read this first about topic branches.
git topic-base-branch
- Show the topic base branch name.
git topic-begin
- Start a new topic branch.
git topic-end
- Finish the current topic branch.
git topic-sync
- Synchronize the current topic branch.
git topic-move
- Rename the current topic branch.