Guest User

Untitled

a guest
Jul 4th, 2016
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.16 KB | None | 0 0
  1. ~/tmp/git $ git --version
  2. git version 1.8.3.1
  3. ~/tmp/git $ bash --version
  4. GNU bash, version 4.2.46(1)-release (x86_64-redhat-linux-gnu)
  5.  
  6. ~/tmp/git $ git init
  7. Initialized empty Git repository in /home/pp/tmp/git/.git/
  8. ~/tmp/git $ echo 1 > test
  9. ~/tmp/git $ git add test
  10. ~/tmp/git $ git commit -m 'line 1
  11. > line 2
  12. > line 3'
  13. [master (root-commit) 10fcfb9] line 1 line 2 line 3
  14.  1 file changed, 1 insertion(+)
  15.  create mode 100644 test
  16. ~/tmp/git $ git show
  17. commit 10fcfb96be4be214a5211fb9d1771bc9dfc2bd62
  18. Author: pp <pp@pp.pp>
  19. Date:   Mon Jul 4 19:28:32 2016 +1200
  20.  
  21.     line 1
  22.     line 2
  23.     line 3
  24.  
  25. diff --git a/test b/test
  26. new file mode 100644
  27. index 0000000..d00491f
  28. --- /dev/null
  29. +++ b/test
  30. @@ -0,0 +1 @@
  31. +1
  32. ~/tmp/git $ echo 2 >> test
  33. ~/tmp/git $ git add test
  34. ~/tmp/git $ git commit -m 'line 1
  35. > line 2
  36. > line 3'
  37. [master 7745993] line 1 line 2 line 3
  38.  1 file changed, 1 insertion(+)
  39. ~/tmp/git $ git show
  40. commit 77459934ddbcd9a557b5ee13bf2d72c43b4829fc
  41. Author: pp <pp@pp.pp>
  42. Date:   Mon Jul 4 19:29:56 2016 +1200
  43.  
  44.     line 1
  45.     line 2
  46.     line 3
  47.  
  48. diff --git a/test b/test
  49. index d00491f..1191247 100644
  50. --- a/test
  51. +++ b/test
  52. @@ -1 +1,2 @@
  53.  1
  54. +2
Add Comment
Please, Sign In to add comment