Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v1.46.4
Fetching contributors…

Cannot retrieve contributors at this time

executable file 38 lines (30 sloc) 1.071 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
#!/bin/bash

fWelcome() {
    clear
    echo "======================================================="
    echo " _ _ _ _ _ _____ _ _______ _ _______ "
    echo "| || || | | | (_____) | | (_______) | (_______)"
    echo "| || || | |__ | | _ \ \ _ | | _____ "
    echo "| ||_|| | __)| | | | \ \| | | | | ___) "
    echo "| |___| | | | |_| |_ _____) ) |_____| |_____| |_____ "
    echo " \______|_| |_(_____|______/ \______)_______)_______)"
    echo " - - - Signaling the start of next generation telephony"
    echo "======================================================="
    echo
}

fFindIgnoredFiles() {
    while read file; do
        fGitRm ${file}
    done < <(find ../$1 2> /dev/null)
}

fGitRm() {
    git ls-files --error-unmatch "$1" 2> /dev/null || return 0

    echo "# git rm --cached $1"
    git rm --cached $1
}

cd `dirname $0`

fWelcome

while read ignore; do
    fFindIgnoredFiles ${ignore}
done < ../.gitignore

echo "All ignored files removed from git, please commit any changes now."
Something went wrong with that request. Please try again.