Remove all
f**ks in your git commit history
Note: you can use unfk -e <your_password_here> to check if the index contains your password, and use -f to remove it.
unfk # Check if index is f**k'd
unfk -f -e 114 -t 514 # Replace all 114 with 514 in index
unfk -f -- 1.txt # Fix 1.txt only
unfk --install # Run unfk before every commitWe recommand you to install it using Git-Get.
Locally: ~/.local/bin/unfk
git get b1f6c1c4/unfk -f -o ~/.local/bin/unfk -- unfk
# Or, without git-get:
curl -fSSL https://raw.githubusercontent.com/b1f6c1c4/unfk/master/unfk > ~/.local/bin/unfk && chmod +x ~/.local/bin/unfkGlobally (with sudo): /usr/bin/unfk
git get b1f6c1c4/unfk -f -o- -- unfk | sudo tee /usr/bin/unfk && sudo chmod +x /usr/bin/unfk
# Or, without git-get:
curl -fSSL https://raw.githubusercontent.com/b1f6c1c4/unfk/master/unfk | sudo tee /usr/bin/unfk >/dev/null && sudo chmod +x /usr/bin/unfk- If
-fis specified:- Return value
0indicates allf**ks are fixed (if any); - Return value
1indicates somef**ks are found but can't be fixed; - Return value
2indicates error.
- Return value
- If
-nis specified, or neither-fnor-nis specified:- Return value
0indicates nof**kis found; - Return value
1indicates somef**ks are found; - Return value
2indicates error.
- Return value
MIT