Skip to content

Instantly share code, notes, and snippets.

@laigyu
laigyu / git branch.md
Last active October 7, 2025 13:57
git branch, git checkout -b, git switch -c, git reset, git merge
at branch main
`git fetch upstream`
`git rebase upstream main`
`git push origin main`