Skip to content
Discussion options

You must be logged in to vote

Platforms like Gitea and Forgejo support AGit natively, letting you open a PR simply by pushing to a magic ref (e.g., git push origin HEAD:refs/for/main). GitHub's architecture is strictly built around the Fork and Pull and Feature Branch models. While GitHub does generate special refs for pull requests behind the scenes (refs/pull/ID/head), they are strictly read-only. You cannot push to them to create or update a PR.

If your goal is to stay completely in the terminal without opening the web UI, the closest native GitHub alternative is using the GitHub CLI (gh).

You can set up a Git alias to push your branch and open a PR in a single command, which mimics the AGit experience:

git config …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by playforge-coding
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pull Requests Propose, review, and discuss changes to a repository's codebase Question Ask and answer questions about GitHub features and usage Welcome 🎉 Used to greet and highlight first-time discussion participants. Welcome to the community! source:ui Discussions created via Community GitHub templates
2 participants