From: Linus Torvalds Date: Tue, 12 Jul 2005 01:32:30 +0000 (-0700) Subject: Make "git checkout" verify that the argument refers to a commit X-Git-Tag: v0.99.1~55 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/714fff2aa8979c5dd169481909a364a860481f0e?hp=714fff2aa8979c5dd169481909a364a860481f0e Make "git checkout" verify that the argument refers to a commit We still need to create a new branch if it didn't refer to an existing branch, otherwise our HEAD will continue to point to something totally different than what we just checked out. I'll need to think about it. Maybe only do it with "-f" and force it to the "master" branch? ---