https://github.com/b1f6c1c4/unfk
Remove all f**ks in your git commit history
https://github.com/b1f6c1c4/unfk
fuck fun git programmer programming shit slang
Last synced: 30 days ago
JSON representation
Remove all f**ks in your git commit history
- Host: GitHub
- URL: https://github.com/b1f6c1c4/unfk
- Owner: b1f6c1c4
- License: mit
- Created: 2019-03-27T23:51:57.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-04-25T05:06:48.000Z (about 6 years ago)
- Last Synced: 2025-09-09T13:36:10.298Z (9 months ago)
- Topics: fuck, fun, git, programmer, programming, shit, slang
- Language: Shell
- Homepage:
- Size: 11.7 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# unfk
> Remove all `f**k`s in your git commit history
Note: you can use `unfk -e ` to check if the index contains your password, and use `-f` to remove it.
## Usage
```sh
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 commit
```
## Install
We recommand you to install it using [Git-Get](https://github.com/b1f6c1c4/git-get).
Locally: `~/.local/bin/unfk`
```sh
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/unfk
```
Globally (with sudo): `/usr/bin/unfk`
```sh
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
```
## Exit status
- If `-f` is specified:
- Return value `0` indicates all `f**k`s are fixed (if any);
- Return value `1` indicates some `f**k`s are found but can't be fixed;
- Return value `2` indicates error.
- If `-n` is specified, or neither `-f` nor `-n` is specified:
- Return value `0` indicates no `f**k` is found;
- Return value `1` indicates some `f**k`s are found;
- Return value `2` indicates error.
## License
MIT