From 863d0e19beccb85714f6902a643278f31f97b2d1 Mon Sep 17 00:00:00 2001 From: Matias Singers Date: Mon, 14 Apr 2014 10:37:18 +0800 Subject: [PATCH] Add Git aliases for tags, branches and remotes Taken from @mathiasbynens dotfiles: https://github.com/mathiasbynens/dotfiles/blob/master/.gitconfig --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 88fcf69..5b61154 100644 --- a/README.md +++ b/README.md @@ -396,6 +396,10 @@ To add an alias, either navigate to `~/.gitconfig` and fill it out in the follow co = checkout cm = commit p = push + # Show verbose output about tags, branches or remotes + tags = tag -l + branches = branch -a + remotes = remote -v ``` or type in the command line: @@ -421,6 +425,9 @@ Some recommendations include: | `git co` | `git checkout` | `git config --global alias.co checkout` | | `git ac` | `git add . -A` `git commit` | `git config --global alias.ac '!git add -A && git commit'` | | `git st` | `git status -sb` | `git config --global alias.st 'status -sb'` | +| `git tags` | `git tag -l` | `git config --global alias.tags 'tag -l'` | +| `git branches` | `git branch -a` | `git config --global alias.branches 'branch -a'` | +| `git remotes` | `git remote -v` | `git config --global alias.remotes 'remote -v'` | ### Auto-correct