10‐002. GitHub Flow - skybonep/fishboneOS GitHub Wiki
-
Create issue on Github
-
Create a branch on local repository
- VS Code: Create new branch (get the branch name from issue page on Github)
- Terminal:
git checkout -b newbranch
-
Make code changes on newbranch and Commit
- VS Code:
- Write commit message and Commit
- Terminal:
git add .git commit -m "commit message"
- VS Code:
-
All codes are ok, push to origin
- VS Code: "Publish Branch" button
- Terminal:
git push origin newbranch
-
Create pull request on Github
-
Resolve (merge) pull request on Github
-
Delete newbranch on Github
- Github: Delete branch in Merge page
- Terminal:
git push --delete origin newbranch
-
Update local repository
- VS Code:
- VS Code: choose main branch
- Pull -> Pull, Push -> Pull from... -> origin/main
- Branch -> Delete branch
- Terminal:
git switch maingit pull origin maingit branch -d newbranch
- VS Code:
-
Close the issue on Github
Reference: https://docs.github.com/en/get-started/using-github/github-flow
Created: 20251224