z/OS Tools & Language

Expand all | Collapse all

Trying a git reset HEAD --hard .... and failing

  • 1.  Trying a git reset HEAD --hard .... and failing

    Posted 07-06-2020 13:10

    After a pull i decided to reverse it using: git reset HEAD --hard and got the message:

    fatal: Cannot do hard reset with paths.

    This makes no sense to me as:

    1. I’m in the subdirectory where the git repository resides
    2. there are no git repositories higher in the directory chain
    3. a co-worker got it to work

    Please advise



  • 2.  RE: Trying a git reset HEAD --hard .... and failing

    Posted 07-06-2020 14:39


  • 3.  RE: Trying a git reset HEAD --hard .... and failing

    Posted 07-06-2020 15:29

    What my co-worker did he wasn’t able to recreate and when I tried exactly what he did it didn’t work.

    He then did something on his Linux box with a ‘git restore’ which i don’t see on z/OS.



  • 4.  RE: Trying a git reset HEAD --hard .... and failing

    Posted 07-23-2020 15:36

    Hello Lionel,

    The restore command was added in Git 2.23.0, whereas the latest release of Git on z/OS is 2.14.4. We’re going to update Git in Q3 2020.

    Regards,
    Vladimir



  • 5.  RE: Trying a git reset HEAD --hard .... and failing

    Posted 07-23-2020 15:50

    Q3 2020 - perfect. We’re in Q3 2020 now - looking forward to it. Any more firm date or just sometime prior to Sept 30?



  • 6.  RE: Trying a git reset HEAD --hard .... and failing

    Posted 07-24-2020 06:10

    Hello Lionel,

    Sorry, I can’t give a better estimate right now.

    Regards,
    Vladimir



  • 7.  RE: Trying a git reset HEAD --hard .... and failing

    Posted 07-24-2020 06:28

    no worries - i can be patient :slight_smile: