Skip to content

Instantly share code, notes, and snippets.

@ytnobody
Last active December 21, 2015 20:39
Show Gist options
  • Save ytnobody/6362642 to your computer and use it in GitHub Desktop.
Save ytnobody/6362642 to your computer and use it in GitHub Desktop.
git test
azuma@ubuntu:~/myproj$ git log
commit 52b0450b049f45b88b4aa4b0694ca646f16f2f12
Author: ytnobody <[email protected]>
Date: Wed Aug 28 15:12:55 2013 +0900
Z
commit 3807c7bb1b25166078f9ca269788eafd7990aabb
Author: ytnobody <[email protected]>
Date: Wed Aug 28 15:12:38 2013 +0900
BAD
commit 61b92520870ae5b9cb8d43b919dcfa7f394dc202
Author: ytnobody <[email protected]>
Date: Wed Aug 28 15:12:21 2013 +0900
Y
commit b58873994400872f9cb05b2a3ec376695b0eef81
Author: ytnobody <[email protected]>
Date: Wed Aug 28 15:12:02 2013 +0900
X
azuma@ubuntu:~/myproj$ git revert 3807c7bb1b
[master 3207193] Revert "BAD"
1 file changed, 1 deletion(-)
delete mode 100644 BAD
azuma@ubuntu:~/myproj$ git log
commit 3207193b98179087f57d26152d1b50532dcffe19
Author: ytnobody <[email protected]>
Date: Wed Aug 28 15:13:16 2013 +0900
Revert "BAD"
This reverts commit 3807c7bb1b25166078f9ca269788eafd7990aabb.
commit 52b0450b049f45b88b4aa4b0694ca646f16f2f12
Author: ytnobody <[email protected]>
Date: Wed Aug 28 15:12:55 2013 +0900
Z
commit 3807c7bb1b25166078f9ca269788eafd7990aabb
Author: ytnobody <[email protected]>
Date: Wed Aug 28 15:12:38 2013 +0900
BAD
commit 61b92520870ae5b9cb8d43b919dcfa7f394dc202
Author: ytnobody <[email protected]>
Date: Wed Aug 28 15:12:21 2013 +0900
Y
commit b58873994400872f9cb05b2a3ec376695b0eef81
Author: ytnobody <[email protected]>
Date: Wed Aug 28 15:12:02 2013 +0900
X
azuma@ubuntu:~/myproj$ ls -l
合計 12
-rw-rw-r-- 1 azuma azuma 10 8月 28 15:11 X
-rw-rw-r-- 1 azuma azuma 10 8月 28 15:12 Y
-rw-rw-r-- 1 azuma azuma 10 8月 28 15:12 Z
azuma@ubuntu:~/myproj$ git show HEAD
commit 3207193b98179087f57d26152d1b50532dcffe19
Author: ytnobody <[email protected]>
Date: Wed Aug 28 15:13:16 2013 +0900
Revert "BAD"
This reverts commit 3807c7bb1b25166078f9ca269788eafd7990aabb.
diff --git a/BAD b/BAD
deleted file mode 100644
index 5e0052b..0000000
--- a/BAD
+++ /dev/null
@@ -1 +0,0 @@
-this is too bad!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment