We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ada54a8 + 61a054c commit 2e560d5Copy full SHA for 2e560d5
bin/git-purge-from-history
@@ -9,14 +9,15 @@ set -o errexit
9
# retrieved from: http://dound.com/2009/04/git-forever-remove-files-or-folders-from-history/
10
#
11
12
-if [ $# -eq 0 ]; then
13
- exit 0are still
+if [[ $# -eq 0 ]]; then
+ echo "You must specify a file/directory to purge from your git history"
14
+ exit 1
15
fi
16
17
# make sure we're at the root of git repo
-if [ ! -d .git ]; then
18
- echo "Error: must run this script from the root of a git repository"
19
- exit 1
+if [[ ! -d .git ]]; then
+ echo "Error: must run this script from the root of a git repository"
20
21
22
23
# remove all paths passed as arguments from the history of the repo
0 commit comments