[RUBY] Git How to easily return to the state before the change (before commit)

Change pre-commit changes without using a terminal

5a8e0bb5a8678f4f589fba16c996ee70.png

Just move to another branch!

This is the easiest way to undo the changes, but if it applies to other cases, you can refer to the article below!

https://qiita.com/tani-shi/items/3419600447292abf6c79 @tani-shi

That's all from the scene!

Recommended Posts

Git How to easily return to the state before the change (before commit)
How to change the timezone on Ubuntu
Ransack sort_link How to change the color!
http: // localhost: How to change the port number
[Ruby on Rails] How to change the column name
How to resolve Git conflicts
9 Corresponds to the return value
How to dynamically change the column name acquired by MyBatis
How to use Ruby return
How to change the setting value of Springboot Hikari CP
How to change the contents of the jar file without decompressing
How to change the file name with Xcode (Refactor Rename)
[Rails] How to introduce kaminari with Slim and change the design
[Rails] How to change the page title of the browser for each page
[chown] How to change the owner of a file or directory
[Rails 5] How to display the password change screen when using devise
How to use the link_to method
How to use the include? method
How to use the form_with method
How to find the average angle
How to return Rails API mode to Rails
How to add the delete function
How to change from HTML to Haml
How to return a value from Model to Controller using the [Swift5] protocol
How to check before sending a message to the server with Spring Integration
How to change the maximum and maximum number of POST data in Spark
How to change the value of a variable at a breakpoint in intelliJ
[Rails] How to create a table, add a column, and change the column type
[swift5] How to change the color of TabBar or the color of item of TabBar with code
How to change app name in rails
[Java] How to use the File class
How to delete the wrong migration file
[Java] How to use the hasNext function
[Java] How to use the HashMap class
How to delete the migration file NO FILE
[Rails] How to use the map method
[Java] How to use the toString () method
Studying how to use the constructor (java)
[Processing × Java] How to use the loop
How to determine the number of parallels
[Java] How to set the Date time to 00:00:00
[Java] How to get the current directory
[Swift] How to implement the countdown function
[Processing × Java] How to use the class
How to sort the List of SelectItem
How to install the legacy version [Java]
How to find the tens and ones
How to pass the value to another screen
How to get the date in java
[Processing × Java] How to use the function
[Java] How to use the Calendar class
Summarized how to climb the programming stairs
[Swift] How to change the order of Bar Items in Tab Bar Controller [Beginner]
[Java] How to easily get the longest character string of ArrayList using stream