Skip to content

Commit f1825eb

Browse files
committed
Add --global' to alias helpers
1 parent 93051b9 commit f1825eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -657,19 +657,19 @@ To add an alias, either navigate to `~/.gitconfig` and fill it out in the follow
657657
...or type in the command-line:
658658

659659
```bash
660-
$ git config alias.new_alias git_function
660+
$ git config --global alias.new_alias git_function
661661
```
662662

663663
For example:
664664

665665
```bash
666-
$ git config alias.cm commit
666+
$ git config --global alias.cm commit
667667
```
668668

669669
For an alias with multiple functions use quotes:
670670

671671
```bash
672-
$ git config alias.ac 'add -A . && commit'
672+
$ git config --global alias.ac 'add -A . && commit'
673673
```
674674

675675
Some useful aliases include:

0 commit comments

Comments
 (0)