Skip to main content
edited title
Link
Binarian
  • 12.4k
  • 8
  • 57
  • 87

Git: move Move branch pointer to different commit without checkout

Add "without checkout" in the title since that is the most important ingredient in the question.
Link

Git: move branch pointer to different commit without checkout

Source Link
Mot
  • 29.2k
  • 24
  • 85
  • 122

Git: move branch pointer to different commit

To move the branch pointer of a checked out branch, one can use the git reset --hard command. But how to move the branch pointer of a not-checked out branch to point at a different commit (keeping all other stuff like tracked remote branch)?