Skip to content

Commit e7ca588

Browse files
authored
Merge pull request #33 from artefatto/add-git-alias
Add a custom git command
2 parents 0573022 + 586baf5 commit e7ca588

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ Use one client to make your life easier when managing gitignore files:
2020

2121
You can list your client here, just open a PR!
2222

23+
### Git alias
24+
Don't want to install a client? We got you, run the following command on your terminal to create a custom git "command":
25+
```sh
26+
git config --global alias.ignore '!gi() { IFS=","; curl -L -s "https://donotcommit.com/api/$*" | tee .gitignore;}; gi'
27+
```
28+
29+
Then, you are able to run `git ignore zig,python` and get a perfect `.gitignore` file created on the current directory.
30+
2331
## Contributing
2432
### Setting Up the Development Environment
2533
To set up the development environment, you'll need to have Python 3.13 installed. You should use [uv](https://docs.astral.sh/uv/) to manage dependencies and run commands.

0 commit comments

Comments
 (0)