I have read a tutorial about Git(Hub) and thought I would just have to follow the 6 commands in the documentation!
Flathub is managed through a GitHub project, and app submissions take place as pull requests. To submit an app:
- Fork the Flathub repository on GitHub
- Clone the fork:
git clone --branch=new-pr git@github.com:your_github_username/flathub.git
- Create a new branch with your app’s name:
git checkout -b your_app_name
- Add your app’s manifest to the branch, commit it and push the commit
- Open a pull request against the
new-pr
branch on Github
- Your pull request will then be reviewed by the Flathub admins
Looks like the instructions are missing the essential Step-0 “Create SSH Key”. I’ve followed the instructions in your link to do that.
Okay up to Step-4 Add your app’s manifest to the branch, commit it and push the commit
Found this on Stackoverflow:
In order to add files in specific branch follow the below instructions :
To create custom branch
git branch branchname
To switch into custom branch
git checkout branchname
Covered in the instructions
To initialize in the custom branch
git init
To add files in the custom branch
git add file name
To commit the changes made in the custom branch
git commit -m “your message”
Done
To make changes in your GitHub repo
git push
git remote add {myapp} https://github.com/{myaccount}/{myapp}|
git push --set-upstream {myapp} {myapp}|
Click “Compare & pull request”.
Result: There isn’t anything to compare.
Since all this appears to achieve is to send the manifest to the Flathub administrators, I’m not finding this process very rational :(.