Skip to content

There is no way to checkout to newer commit #472

Open
@alex-kravets

Description

@alex-kravets

Description

It is only possible to checkout old commits, but there is no way to get back to HEAD then.

Reproduce

  1. Start Jupyter Lab in git folder
  2. Checkout previous commit (or another from the history) on the current branch (there must be at least two commits to reproduce the behavior)
  3. Now try to get back to the most recent commit
  4. Profit ;)

Expected behavior

You won't be able to do that since there is no newer commit items in the history bar.

Proposal

I propose to add --all argument to the subprocess in the git.log function inside the file git.py. After that, it would be possible to checkout newer commits, but at the same time, git history will contain commits from other branches...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions