|
|
|
|
|
by tsimionescu
297 days ago
|
|
They're closer to the right command than you are. `git reset --hard` will move HEAD to the given branch. The right command would be `git checkout -B branch` / `git switch -C branch`, to create or update `branch` to point to the current commit (except for the side effect that future commits will then go onto `branch` in git, while they won't in jj). Basically, jj is just like working with git in detached head mode as far as I can tell. |
|