DEV Community


Discussion on: I'm a Git Master, Ask Me Anything

gonedark profile image
Jason McCreary Ask Me Anything

You could do that.

Many forget checkout takes second argument as a reference to checkout from. So if your goal was simply to checkout a branch from an older point in time (commit abc123), you could run: git checkout -b foobar abc123