From 96289e570dd7af7933825e676bbaed74752ebad5 Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Wed, 24 Aug 2016 16:58:53 +0100 Subject: [PATCH] git-branch.md: various fixes (no content change) - changed token syntax to match project guidelines - added tokens to the rename example - moved rename example to before the delete example - reword some descriptions for clarity - include "git" in the command description --- pages/common/git-branch.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pages/common/git-branch.md b/pages/common/git-branch.md index cadfa1ceb..a4848425e 100644 --- a/pages/common/git-branch.md +++ b/pages/common/git-branch.md @@ -1,23 +1,23 @@ # git branch -> Main command for working with branches. +> Main git command for working with branches. - List local branches. The current branch is highlighted by `*`: `git branch` -- List all local and remote branches: +- List all branches (local and remote): `git branch -a` -- Create new branch based on current branch: +- Create new branch based on the current commit: -`git branch {{BRANCH-NAME}}` +`git branch {{branch_name}}` + +- Rename a branch (must not have it checked out to do this): + +`git branch -m {{old_branch_name}} {{new_branch_name}}` - Delete a local branch: -`git branch -d {{BRANCH-NAME}}` - -- Move/Rename a branch: - -`git branch -m` +`git branch -d {{branch_name}}`