Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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 -
    ...
      start-anew
    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
    done
    
  4. or download this
    echo -e "Added in 2.12_005\n---" >>foo.txt
    git commit -am "Edit for 2.12_005"
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1188409]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2024-04-24 08:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found