Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 10:40:25 taras@dell: /tmp/aaa $ git init
- Initialized empty Git repository in /tmp/aaa/.git/
- 10:40:30 taras@dell: (master) /tmp/aaa $ touch readme
- 10:40:43 taras@dell: {master} /tmp/aaa $ git add readme
- 10:40:49 taras@dell: {master} /tmp/aaa $ git ci -a -m "initial commit"
- [master (root-commit) b86efb8] initial commit
- 1 file changed, 0 insertions(+), 0 deletions(-)
- create mode 100644 readme
- 10:40:59 taras@dell: (master) /tmp/aaa $
- 10:41:01 taras@dell: (master) /tmp/aaa $ git checkout -b branch1
- Switched to a new branch 'branch1'
- 10:41:31 taras@dell: (branch1) /tmp/aaa $ rm ./readme
- 10:41:36 taras@dell: {branch1} /tmp/aaa $ touch file1
- 10:41:43 taras@dell: {branch1} /tmp/aaa $ mkdir dir1 dir2
- 10:42:21 taras@dell: {branch1} /tmp/aaa $ touch dir1/f1
- 10:42:48 taras@dell: {branch1} /tmp/aaa $ touch dir2/f2
- 10:42:56 taras@dell: {branch1} /tmp/aaa $ git add file1 dir1 dir2
- 10:43:14 taras@dell: {branch1} /tmp/aaa $ git ci -a -m "create branch1"
- [branch1 1ba8ac5] create branch1
- 3 files changed, 0 insertions(+), 0 deletions(-)
- rename readme => dir1/f1 (100%)
- create mode 100644 dir2/f2
- create mode 100644 file1
- 10:43:25 taras@dell: (branch1) /tmp/aaa $ ll
- total 0
- drwxr-xr-x. 5 taras taras 120 Sep 17 22:42 ./
- drwxrwxrwt. 15 root root 380 Sep 17 22:42 ../
- drwxr-xr-x. 2 taras taras 60 Sep 17 22:42 dir1/
- drwxr-xr-x. 2 taras taras 60 Sep 17 22:42 dir2/
- -rw-r--r--. 1 taras taras 0 Sep 17 22:41 file1
- drwxr-xr-x. 8 taras taras 260 Sep 17 22:43 .git/
- 10:43:27 taras@dell: (branch1) /tmp/aaa $ git checkout -b branch2
- Switched to a new branch 'branch2'
- 10:45:08 taras@dell: (branch2) /tmp/aaa $ git rm -rf dir1 dir2
- rm 'dir1/f1'
- rm 'dir2/f2'
- 10:45:11 taras@dell: {branch2} /tmp/aaa $ git rm file1
- rm 'file1'
- 10:45:16 taras@dell: {branch2} /tmp/aaa $
- 10:45:17 taras@dell: {branch2} /tmp/aaa $ touch file2
- 10:45:25 taras@dell: {branch2} /tmp/aaa $ mkdir dir3 dir4
- 10:45:32 taras@dell: {branch2} /tmp/aaa $ touch dir3/f3
- 10:45:42 taras@dell: {branch2} /tmp/aaa $ touch dir4/f4
- 10:45:47 taras@dell: {branch2} /tmp/aaa $ git add file2 dir3 dir4
- 10:45:55 taras@dell: {branch2} /tmp/aaa $ git ci -a -m "create branch2"
- [branch2 17caec3] create branch2
- 3 files changed, 0 insertions(+), 0 deletions(-)
- rename file1 => dir3/f3 (100%)
- rename dir2/f2 => dir4/f4 (100%)
- rename dir1/f1 => file2 (100%)
- 10:46:05 taras@dell: (branch2) /tmp/aaa $
- 10:46:06 taras@dell: (branch2) /tmp/aaa $ ll
- total 0
- drwxr-xr-x. 5 taras taras 120 Sep 17 22:45 ./
- drwxrwxrwt. 15 root root 380 Sep 17 22:42 ../
- drwxr-xr-x. 2 taras taras 60 Sep 17 22:45 dir3/
- drwxr-xr-x. 2 taras taras 60 Sep 17 22:45 dir4/
- -rw-r--r--. 1 taras taras 0 Sep 17 22:45 file2
- drwxr-xr-x. 8 taras taras 260 Sep 17 22:46 .git/
- 10:46:07 taras@dell: (branch2) /tmp/aaa $ git checkout branch1
- Switched to branch 'branch1'
- 10:46:18 taras@dell: (branch1) /tmp/aaa $ ll
- total 0
- drwxr-xr-x. 5 taras taras 120 Sep 17 22:46 ./
- drwxrwxrwt. 15 root root 380 Sep 17 22:42 ../
- drwxr-xr-x. 2 taras taras 60 Sep 17 22:46 dir1/
- drwxr-xr-x. 2 taras taras 60 Sep 17 22:46 dir2/
- -rw-r--r--. 1 taras taras 0 Sep 17 22:46 file1
- drwxr-xr-x. 8 taras taras 260 Sep 17 22:46 .git/
- 10:46:21 taras@dell: (branch1) /tmp/aaa $ git checkout master
- Switched to branch 'master'
- 10:46:27 taras@dell: (master) /tmp/aaa $ ll
- total 0
- drwxr-xr-x. 3 taras taras 80 Sep 17 22:46 ./
- drwxrwxrwt. 15 root root 380 Sep 17 22:42 ../
- drwxr-xr-x. 8 taras taras 260 Sep 17 22:46 .git/
- -rw-r--r--. 1 taras taras 0 Sep 17 22:46 readme
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement