Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: [OT] What is best practice for 'git reset'? (updated)

by haukex (Archbishop)
on Apr 20, 2017 at 13:46 UTC ( [id://1188409] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    git revert --no-commit 2.12_002..
    git commit -m "Rewind to tag 2.12_002"
    # continue work here
  2. or download this
    git checkout -b start-anew 2.12_002
    # - make edits here -
    git branch -d start-anew
    git log --oneline --decorate --graph
  3. or download this
    git init
    echo -e "Hello, World\n---" >foo.txt
        git commit -am "Edit for $VER"
        git tag $VER
  4. or download this
    echo -e "Added in 2.12_005\n---" >>foo.txt
    git commit -am "Edit for 2.12_005"