Created
October 21, 2017 12:33
-
-
Save wojpawlik/bdf405738b0839d389d9ef10b20e8dd0 to your computer and use it in GitHub Desktop.
Easily add files to .gitignore from shell. Just put it in a directory in your PATH and chmod +x git-ignore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in "$@"; do | |
echo $i | |
done >> .gitignore |
[alias]
ignore = !printf '/%s\n' "$@" >> .gitignore
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#!/usr/bin/env bash
is better :P