Git Flow Cheat Sheet - iptracej-education/multi-agent-coding-loop GitHub Wiki

Git Flow Cheat Sheet — Multi-Agent Coding Loop


Create a new branch

git checkout -b v0.2

Make edits, then stage & commit

git add README.md ROADMAP.md
git commit -m "v0.2 architecture update"

Push branch to GitHub

git push -u origin v0.2

GitHub will show link to:
https://github.com/<your-repo>/pull/new/v0.2


Keep updating branch

# Edit files
git add <files>
git commit -m "update: your message"
git push

Create Pull Request (PR)

  • Go to GitHub
  • Open Pull Request tab
  • Create PR: v0.2 → main

Merge branch into main

On GitHub:

  • Click Merge Pull Request
  • Done — main now updated

(Optional) Delete branch after merge

git branch -d v0.2             # delete local
git push origin --delete v0.2  # delete remote

Check current branch

git branch

Pull Request behavior

  • You only need to create PR once (first time you push branch like v0.2).

  • After PR is open:

git add <files>
git commit -m "your message"
git push
  • PR will auto-update with new commits — no need to create PR again.

  • When ready → click Merge pull request on GitHub.

  • After merge → main branch is updated.

  • You can then delete branch if you want.

⚠️ **GitHub.com Fallback** ⚠️