Skip to content
David Bookstaber edited this page Jul 8, 2025 · 2 revisions

To get local to match remote branch – particularly after remote has been rebased (preferred – keeps history linear) or merged:

  1. git stash save "stash-name"
  2. git reset --hard origin/branch
  3. git stash pop

Listing stuff:

  • git status
  • git stash list
  • git branch -vv
  • git remote -v

Clone this wiki locally