10‐002. GitHub Flow - skybonep/fishboneOS GitHub Wiki

  1. Create issue on Github

  2. 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
  3. Make code changes on newbranch and Commit

    • VS Code:
      • Write commit message and Commit
    • Terminal:
      • git add .
      • git commit -m "commit message"
  4. All codes are ok, push to origin

    • VS Code: "Publish Branch" button
    • Terminal: git push origin newbranch
  5. Create pull request on Github

  6. Resolve (merge) pull request on Github

  7. Delete newbranch on Github

    • Github: Delete branch in Merge page
    • Terminal: git push --delete origin newbranch
  8. Update local repository

    • VS Code:
      • VS Code: choose main branch
      • Pull -> Pull, Push -> Pull from... -> origin/main
      • Branch -> Delete branch
    • Terminal:
      • git switch main
      • git pull origin main
      • git branch -d newbranch
  9. Close the issue on Github

Reference: https://docs.github.com/en/get-started/using-github/github-flow

Created: 20251224