AGit Workflow Support #203521
🏷️ Discussion TypeQuestion BodyWill GitHub ever support the AGit workflow like Gitea and Forgejo do? |
Replies: 1 comment
|
Platforms like Gitea and Forgejo support AGit natively, letting you open a PR simply by pushing to a magic ref (e.g., 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 ( 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 --global alias.pr '!git push -u origin HEAD && gh pr create --fill' |
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: