Advertisement
Guest User

Untitled

a guest
Oct 9th, 2017
559
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.28 KB | None | 0 0
  1. Eugene@EUGENE-PC /some (master)
  2. $ git log
  3. commit f172c390d5c8a343e6a83842b6ce85a2884cf8e0
  4. Author: Eugene Serkin <jeserkin@gmail.com>
  5. Date: Sat Oct 27 15:15:21 2012 +0300
  6.  
  7. Initial commit
  8.  
  9. Eugene@EUGENE-PC /some (master)
  10. $ git status
  11. # On branch master
  12. nothing to commit (working directory clean)
  13.  
  14. Eugene@EUGENE-PC /some (master)
  15. $ git branch
  16. * master
  17.  
  18. Eugene@EUGENE-PC /some (master)
  19. $ ls -ll
  20. total 0
  21. -rw-r--r-- 1 Eugene Administ 0 Oct 27 16:58 LICENSE
  22. -rw-r--r-- 1 Eugene Administ 0 Oct 27 16:58 README
  23. -rw-r--r-- 1 Eugene Administ 0 Oct 27 16:58 index.php
  24.  
  25. Eugene@EUGENE-PC /some (master)
  26. $ vim index.php
  27.  
  28. Eugene@EUGENE-PC /some (master)
  29. $ git commit -am 'Added some code to index.php'
  30. [master 968afd9] Added some code to index.php
  31. 1 file changed, 5 insertions(+)
  32.  
  33. Eugene@EUGENE-PC /some (master)
  34. $ git log
  35. commit 968afd998c2afc40acdc93a7d86341dba42676f6
  36. Author: Eugene Serkin <jeserkin@gmail.com>
  37. Date: Sat Oct 27 17:00:46 2012 +0300
  38.  
  39. Added some code to index.php
  40.  
  41. commit f172c390d5c8a343e6a83842b6ce85a2884cf8e0
  42. Author: Eugene Serkin <jeserkin@gmail.com>
  43. Date: Sat Oct 27 15:15:21 2012 +0300
  44.  
  45. Initial commit
  46.  
  47. Eugene@EUGENE-PC /some (master)
  48. $ git checkout -b experiment
  49. Switched to a new branch 'experiment'
  50.  
  51. Eugene@EUGENE-PC /some (experiment)
  52. $ touch .htaccess
  53.  
  54. Eugene@EUGENE-PC /some (experiment)
  55. $ git add .
  56.  
  57. Eugene@EUGENE-PC /some (experiment)
  58. $ git commit -m 'Adding .htaccess for project'
  59. [experiment 916c483] Adding .htaccess for project
  60. 0 files changed
  61. create mode 100644 .htaccess
  62.  
  63. Eugene@EUGENE-PC /some (experiment)
  64. $ git log
  65. commit 916c483ed120e97f819760c0acc17b971916121d
  66. Author: Eugene Serkin <jeserkin@gmail.com>
  67. Date: Sat Oct 27 17:01:38 2012 +0300
  68.  
  69. Adding .htaccess for project
  70.  
  71. commit 968afd998c2afc40acdc93a7d86341dba42676f6
  72. Author: Eugene Serkin <jeserkin@gmail.com>
  73. Date: Sat Oct 27 17:00:46 2012 +0300
  74.  
  75. Added some code to index.php
  76.  
  77. commit f172c390d5c8a343e6a83842b6ce85a2884cf8e0
  78. Author: Eugene Serkin <jeserkin@gmail.com>
  79. Date: Sat Oct 27 15:15:21 2012 +0300
  80.  
  81. Initial commit
  82.  
  83. Eugene@EUGENE-PC /some (experiment)
  84. $ vim .htaccess
  85.  
  86. Eugene@EUGENE-PC /some (experiment)
  87. $ git commit -am 'Started to work with .htaccess'
  88. [experiment c6f01d4] Started to work with .htaccess
  89. 1 file changed, 1 insertion(+)
  90.  
  91. Eugene@EUGENE-PC /some (experiment)
  92. $ git checkout master
  93. Switched to branch 'master'
  94. Your branch is ahead of 'origin/master' by 1 commit.
  95.  
  96. Eugene@EUGENE-PC /some (master)
  97. $ vim test.php
  98.  
  99. Eugene@EUGENE-PC /some (master)
  100. $ git add .
  101.  
  102. Eugene@EUGENE-PC /some (master)
  103. $ git commit -m 'Added test file for later work'
  104. [master 6ddf59c] Added test file for later work
  105. 1 file changed, 2 insertions(+)
  106. create mode 100644 test.php
  107.  
  108. Eugene@EUGENE-PC /some (master)
  109. $ git log
  110. commit 6ddf59c5a04cfebdfeb243221061f34ed048270c
  111. Author: Eugene Serkin <jeserkin@gmail.com>
  112. Date: Sat Oct 27 17:03:58 2012 +0300
  113.  
  114. Added test file for later work
  115.  
  116. commit 968afd998c2afc40acdc93a7d86341dba42676f6
  117. Author: Eugene Serkin <jeserkin@gmail.com>
  118. Date: Sat Oct 27 17:00:46 2012 +0300
  119.  
  120. Added some code to index.php
  121.  
  122. commit f172c390d5c8a343e6a83842b6ce85a2884cf8e0
  123. Author: Eugene Serkin <jeserkin@gmail.com>
  124. Date: Sat Oct 27 15:15:21 2012 +0300
  125.  
  126. Initial commit
  127.  
  128. Eugene@EUGENE-PC /some (master)
  129. $ git checkout experiment
  130. Switched to branch 'experiment'
  131.  
  132. Eugene@EUGENE-PC /some (experiment)
  133. $ ls -la
  134. total 37
  135. drwxr-xr-x 1 Eugene Administ 4096 Oct 27 17:04 .
  136. dr-xr-xr-x 116 Eugene Administ 65536 Oct 27 16:58 ..
  137. drwxr-xr-x 13 Eugene Administ 4096 Oct 27 17:04 .git
  138. -rw-r--r-- 1 Eugene Administ 29 Oct 27 17:04 .htaccess
  139. -rw-r--r-- 1 Eugene Administ 0 Oct 27 16:58 LICENSE
  140. -rw-r--r-- 1 Eugene Administ 0 Oct 27 16:58 README
  141. -rw-r--r-- 1 Eugene Administ 27 Oct 27 16:59 index.php
  142.  
  143. Eugene@EUGENE-PC /some (experiment)
  144. $ git checkout master
  145. Switched to branch 'master'
  146. Your branch is ahead of 'origin/master' by 2 commits.
  147.  
  148. Eugene@EUGENE-PC /some (master)
  149. $ ls -la
  150. total 37
  151. drwxr-xr-x 1 Eugene Administ 4096 Oct 27 17:04 .
  152. dr-xr-xr-x 116 Eugene Administ 65536 Oct 27 16:58 ..
  153. drwxr-xr-x 13 Eugene Administ 4096 Oct 27 17:04 .git
  154. -rw-r--r-- 1 Eugene Administ 0 Oct 27 16:58 LICENSE
  155. -rw-r--r-- 1 Eugene Administ 0 Oct 27 16:58 README
  156. -rw-r--r-- 1 Eugene Administ 27 Oct 27 16:59 index.php
  157. -rw-r--r-- 1 Eugene Administ 45 Oct 27 17:04 test.php
  158.  
  159. Eugene@EUGENE-PC /some (master)
  160. $ git checkout experiment
  161. Switched to branch 'experiment'
  162.  
  163. Eugene@EUGENE-PC /some (experiment)
  164. $ git rebase master
  165. First, rewinding head to replay your work on top of it...
  166. Applying: Adding .htaccess for project
  167. Applying: Started to work with .htaccess
  168.  
  169. Eugene@EUGENE-PC /some (experiment)
  170. $ git checkout master
  171. Switched to branch 'master'
  172. Your branch is ahead of 'origin/master' by 2 commits.
  173.  
  174. Eugene@EUGENE-PC /some (master)
  175. $ ls -la
  176. total 37
  177. drwxr-xr-x 1 Eugene Administ 4096 Oct 27 17:05 .
  178. dr-xr-xr-x 116 Eugene Administ 65536 Oct 27 16:58 ..
  179. drwxr-xr-x 14 Eugene Administ 4096 Oct 27 17:05 .git
  180. -rw-r--r-- 1 Eugene Administ 0 Oct 27 16:58 LICENSE
  181. -rw-r--r-- 1 Eugene Administ 0 Oct 27 16:58 README
  182. -rw-r--r-- 1 Eugene Administ 27 Oct 27 16:59 index.php
  183. -rw-r--r-- 1 Eugene Administ 45 Oct 27 17:05 test.php
  184.  
  185. Eugene@EUGENE-PC /some (master)
  186. $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement