https://github.com/guidanoli/git-utils
Useful Git Scripts
https://github.com/guidanoli/git-utils
Last synced: 7 months ago
JSON representation
Useful Git Scripts
- Host: GitHub
- URL: https://github.com/guidanoli/git-utils
- Owner: guidanoli
- License: gpl-3.0
- Created: 2022-02-24T00:36:26.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-22T14:52:16.000Z (12 months ago)
- Last Synced: 2025-01-17T13:30:03.334Z (9 months ago)
- Language: Shell
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Utilities for Git
## Setup
1. Clone this repository anywhere
2. Add `bin/` to your `PATH` environment variable
3. Now you can use commands with `git`, like `git fzf`## Scripts
### List ignored files (`git-ls-ignored-files`)
The `git status --ignored` command prints all ignored files, but you can't pipe it to `xargs rm -rf`, for example, because it prints other stuff too.
### Remove ignored files (`git-rm-ignored-files`)
Removes recursively all files and folders listed by `git-ls-ignored-files`.
### List old branches (`git-ls-old-branches`)
After a branch gets merged, you can delete it locally. This script lists all branches that don't exist anymore on remote.
### Remove old branches (`git-rm-old-branches`)
Removes all branches listed by `git-ls-old-branches`.
### Fuzzy-find file (`git-fzf`)
It's easier to find files in your git repository that way. It ignores what's on `.gitignore` too.
### Fuzzy-find file and open on vi (`git-fzf-vi`)
Open file selected by fuzzy-find in vi.