A simple CLI tool for basic interactions with issues and pull requests across GitHub, GitLab, Gitea, and Forgejo.
git-forge requires Node.js to run. Other than node, git-forge only uses dev dependencies.
git forge [<subcommand>] [<options>]issue- List issuespr- List pull requests and create a pull request for the current branchweb- Get the web URL for repositories
Note that due to differing forge APIs, some behavior may vary across forges. Use --help for detailed information.
# git aliases in .gitconfig
[alias]
# Search for and copy an issue link to clipboard. `copy` is a custom script
fcpissue = "!git forge issue | fzf | cut -f 2 | copy"
# Search for and open an issue in your browser (on linux)
fopenissue = "!git forge issue | fzf | cut -f 2 | xargs xdg-open &> /dev/null"
# Open the issues page on a git forge (on linux); e.g. https://github.com/Leleat/git-forge/issues
fopenissues = "!git forge web --type issues | xargs xdg-open &> /dev/null"
# Search for a PR and check it out locally
freviewpr = "!git forge pr | fzf | cut -d' ' -f 1 | xargs git forge pr checkout"npm install
npm run buildMove dist/git-forge to a PATH directory.
If you like this project, you can support me with GitHub Sponsors.
MIT. See the license file for details.