Advertisement
Guest User

Untitled

a guest
Sep 17th, 2015
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.49 KB | None | 0 0
  1. 10:40:25 taras@dell: /tmp/aaa $ git init
  2. Initialized empty Git repository in /tmp/aaa/.git/
  3. 10:40:30 taras@dell: (master) /tmp/aaa $ touch readme
  4. 10:40:43 taras@dell: {master}  /tmp/aaa $ git add readme
  5. 10:40:49 taras@dell: {master}  /tmp/aaa $ git ci -a -m "initial commit"
  6. [master (root-commit) b86efb8] initial commit
  7.  1 file changed, 0 insertions(+), 0 deletions(-)
  8.  create mode 100644 readme
  9. 10:40:59 taras@dell: (master) /tmp/aaa $
  10. 10:41:01 taras@dell: (master) /tmp/aaa $ git checkout -b branch1
  11. Switched to a new branch 'branch1'
  12. 10:41:31 taras@dell: (branch1) /tmp/aaa $ rm ./readme
  13. 10:41:36 taras@dell: {branch1}  /tmp/aaa $ touch file1
  14. 10:41:43 taras@dell: {branch1}  /tmp/aaa $ mkdir dir1 dir2
  15. 10:42:21 taras@dell: {branch1}  /tmp/aaa $ touch dir1/f1
  16. 10:42:48 taras@dell: {branch1}  /tmp/aaa $ touch dir2/f2
  17. 10:42:56 taras@dell: {branch1}  /tmp/aaa $ git add file1 dir1 dir2
  18. 10:43:14 taras@dell: {branch1}  /tmp/aaa $ git ci -a -m "create branch1"
  19. [branch1 1ba8ac5] create branch1
  20.  3 files changed, 0 insertions(+), 0 deletions(-)
  21.  rename readme => dir1/f1 (100%)
  22.  create mode 100644 dir2/f2
  23.  create mode 100644 file1
  24. 10:43:25 taras@dell: (branch1) /tmp/aaa $ ll
  25. total 0
  26. drwxr-xr-x.  5 taras taras 120 Sep 17 22:42 ./
  27. drwxrwxrwt. 15 root  root  380 Sep 17 22:42 ../
  28. drwxr-xr-x.  2 taras taras  60 Sep 17 22:42 dir1/
  29. drwxr-xr-x.  2 taras taras  60 Sep 17 22:42 dir2/
  30. -rw-r--r--.  1 taras taras   0 Sep 17 22:41 file1
  31. drwxr-xr-x.  8 taras taras 260 Sep 17 22:43 .git/
  32. 10:43:27 taras@dell: (branch1) /tmp/aaa $ git checkout -b branch2
  33. Switched to a new branch 'branch2'
  34. 10:45:08 taras@dell: (branch2) /tmp/aaa $ git rm -rf dir1 dir2
  35. rm 'dir1/f1'
  36. rm 'dir2/f2'
  37. 10:45:11 taras@dell: {branch2}  /tmp/aaa $ git rm file1
  38. rm 'file1'
  39. 10:45:16 taras@dell: {branch2}  /tmp/aaa $
  40. 10:45:17 taras@dell: {branch2}  /tmp/aaa $ touch file2
  41. 10:45:25 taras@dell: {branch2}  /tmp/aaa $ mkdir dir3 dir4
  42. 10:45:32 taras@dell: {branch2}  /tmp/aaa $ touch dir3/f3
  43. 10:45:42 taras@dell: {branch2}  /tmp/aaa $ touch dir4/f4
  44. 10:45:47 taras@dell: {branch2}  /tmp/aaa $ git add file2 dir3 dir4
  45. 10:45:55 taras@dell: {branch2}  /tmp/aaa $ git ci -a -m "create branch2"
  46. [branch2 17caec3] create branch2
  47.  3 files changed, 0 insertions(+), 0 deletions(-)
  48.  rename file1 => dir3/f3 (100%)
  49.  rename dir2/f2 => dir4/f4 (100%)
  50.  rename dir1/f1 => file2 (100%)
  51. 10:46:05 taras@dell: (branch2) /tmp/aaa $
  52. 10:46:06 taras@dell: (branch2) /tmp/aaa $ ll
  53. total 0
  54. drwxr-xr-x.  5 taras taras 120 Sep 17 22:45 ./
  55. drwxrwxrwt. 15 root  root  380 Sep 17 22:42 ../
  56. drwxr-xr-x.  2 taras taras  60 Sep 17 22:45 dir3/
  57. drwxr-xr-x.  2 taras taras  60 Sep 17 22:45 dir4/
  58. -rw-r--r--.  1 taras taras   0 Sep 17 22:45 file2
  59. drwxr-xr-x.  8 taras taras 260 Sep 17 22:46 .git/
  60. 10:46:07 taras@dell: (branch2) /tmp/aaa $ git checkout branch1
  61. Switched to branch 'branch1'
  62. 10:46:18 taras@dell: (branch1) /tmp/aaa $ ll
  63. total 0
  64. drwxr-xr-x.  5 taras taras 120 Sep 17 22:46 ./
  65. drwxrwxrwt. 15 root  root  380 Sep 17 22:42 ../
  66. drwxr-xr-x.  2 taras taras  60 Sep 17 22:46 dir1/
  67. drwxr-xr-x.  2 taras taras  60 Sep 17 22:46 dir2/
  68. -rw-r--r--.  1 taras taras   0 Sep 17 22:46 file1
  69. drwxr-xr-x.  8 taras taras 260 Sep 17 22:46 .git/
  70. 10:46:21 taras@dell: (branch1) /tmp/aaa $ git checkout master
  71. Switched to branch 'master'
  72. 10:46:27 taras@dell: (master) /tmp/aaa $ ll
  73. total 0
  74. drwxr-xr-x.  3 taras taras  80 Sep 17 22:46 ./
  75. drwxrwxrwt. 15 root  root  380 Sep 17 22:42 ../
  76. drwxr-xr-x.  8 taras taras 260 Sep 17 22:46 .git/
  77. -rw-r--r--.  1 taras taras   0 Sep 17 22:46 readme
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement