CLI tool for fetching the latest gitignore templates for your language when you start a new project. The templates are taken from the official github gitignore repository. As of right now, 155 gitignore templates are supported.
demo.mov
- Clone the repository
git clone https://github.com/Robert076/code-buddy.git- Build the binary (you can also use go install instead)
cd code-buddy
cd cmd/code-buddy
go build -o cb- Take that binary file, and move it to
usr/local/bin(this is for macOS, add it to your path on windows)
mv cb <your_path_to_bin>- Add executable permissions to binary
chmod +x cb- Get the gitignore you want on your terminal window
cb gitignore <your_language>- Get the gitignore in your clipboard, ready to paste
cb gitignore <your_language> | pbcopy- Get the gitignore straight into a file (most likely
.gitignore)
cb gitignore <your_language> >> (path_to .gitignore)