10000 Merge pull request #17 from matiassingers/master · s30java/github-cheat-sheet@eda78be · GitHub
[go: up one dir, main page]

Skip to content

Commit eda78be

Browse files
author
Rafal Chmiel
committed
Merge pull request tiimgreen#17 from matiassingers/master
Add Git aliases for tags, branches and remotes
2 parents e1200a8 + 863d0e1 commit eda78be

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,10 @@ To add an alias, either navigate to `~/.gitconfig` and fill it out in the follow
396396
co = checkout
397397
cm = commit
398398
p = push
399+
# Show verbose outpu 95C1 t about tags, branches or remotes
400+
tags = tag -l
401+
branches = branch -a
402+
remotes = remote -v
399403
```
400404

401405
or type in the command line:
@@ -421,6 +425,9 @@ Some recommendations include:
421425
| `git co` | `git checkout` | `git config --global alias.co checkout` |
422426
| `git ac` | `git add . -A` `git commit` | `git config --global alias.ac '!git add -A && git commit'` |
423427
| `git st` | `git status -sb` | `git config --global alias.st 'status -sb'` |
428+
| `git tags` | `git tag -l` | `git config --global alias.tags 'tag -l'` |
429+
| `git branches` | `git branch -a` | `git config --global alias.branches 'branch -a'` |
430+
| `git remotes` | `git remote -v` | `git config --global alias.remotes 'remote -v'` |
424431

425432
### Auto-correct
426433

0 commit comments

Comments
 (0)
0