Skip to content

Instantly share code, notes, and snippets.

@carlesjove
Last active November 5, 2018 08:59
Show Gist options
  • Save carlesjove/f9da25e0e27634f6494427d985d282eb to your computer and use it in GitHub Desktop.
Save carlesjove/f9da25e0e27634f6494427d985d282eb to your computer and use it in GitHub Desktop.
Useful Git commands

See changes introduced by last commit

$ git diff HEAD^..HEAD

diff --git a/example.rb b/example.rb
index 9c145d2..a5d3df4 100644
--- a/example.rb
+++ b/example.rb
@@ -2,7 +2,7 @@ class Example
   def method
-    puts "One thing"
+    puts "Different thing"
   end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment