Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

Add gitignore alias for quickly adding to .gitignore #79

Open
salcode opened this issue May 29, 2018 · 0 comments
Open

Add gitignore alias for quickly adding to .gitignore #79

salcode opened this issue May 29, 2018 · 0 comments

Comments

@salcode
Copy link
Member

salcode commented May 29, 2018

With this alias you can easily add extra files or directories to the gitignore right from the command line.

git config --global --add alias.ignore '!f() { echo $1 >> .gitignore; }; f'

# Execute the command

git ignore /path/to/ignore/dir/*

source

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant