diff --git a/doc/git_reference.md b/doc/git_reference.md index 2a9dd69..8effb54 100644 --- a/doc/git_reference.md +++ b/doc/git_reference.md @@ -31,15 +31,17 @@ git config --global user.name "Your Name" # SHORTCUTS -| Alias | Description | Command | -| :----- | ------------------------------------------------------ | ------------------------------------------------------------ | -| `gbsc` | What branch am I currently on? | `> git branch --show-current` | -| `gbva` | Verbosely list all local and remote-tracking branches. | `> git branch -v -a` | -| `gllb` | Concisely list local branches. | `> git for-each-ref --format="%(refname:short)" refs/heads` | -| `glrb` | List all remote active branches (Windows). | > git ls-remote --heads origin \| perl -ne "print \"$1\n\" if m\|refs/heads(.*)$\|"
You'll be warned if you have unmerged local changes; use `-D` instead.
You'll be warned if the branch is not fully merged; use `-D` instead. | -| `glrb` | List all remote active branches (Linux). | > git ls-remote --heads origin \|perl -ne 'print "$1\n" if m\|refs/heads(.*)$\|' | -| `gbd` | Delete a local branch. | > git branch --delete *branchname* | -| `gbdr` | Delete remote-tracking branch. | > git branch -d -r origin/*branchname* | +| Alias | Description | Command | +| :------ | ------------------------------------------------------------ | ------------------------------------------------------------ | +| `gbsc` | What branch am I currently on? | `> git branch --show-current` | +| `gbva` | Verbosely list all local and remote-tracking branches. | `> git branch -v -a` | +| `gllb` | Concisely list local branches. | `> git for-each-ref --format="%(refname:short)" refs/heads` | +| `glrb` | List all remote active branches (Windows). | > git ls-remote --heads origin \| perl -ne "print \"$1\n\" if m\|refs/heads(.*)$\|"
You'll be warned if you have unmerged local changes; use `-D` instead.
You'll be warned if the branch is not fully merged; use `-D` instead. | +| `glrb` | List all remote active branches (Linux). | > git ls-remote --heads origin \|perl -ne 'print "$1\n" if m\|refs/heads(.*)$\|' | +| `gbd` | Delete a local branch. | > git branch --delete *branchname* | +| `gbdr` | Delete remote-tracking branch. | > git branch -d -r origin/*branchname* | +| `glog` | Concise Git log format. | > git log —decorate —oneline —graph | +| `gdiff` | Invoke Git diff tool. (See [Use a specific diff tool](#Use a specific diff tool)) | > git difftool --extcmd=diff --no-prompt | ## .bashrc