$ git log $ git log --oneline 4d2bddd (HEAD -> master) rename d34df54 学习工作区和暂存区 33f7ae4 Add readme $ git log -n2 commit 4d2bdddf4098e40ce57fdaf04bb862f7bea04918 (HEAD -> master) Author: xxx <xxx@xxx.com> Date: Mon Apr 29 21:36:15 2019 +0800
rename
commit d34df54beffb33cf6e4f4e97d0f0e24f2b676d51 Author: xxx <xxx@xxx.com> Date: Mon Apr 29 21:02:02 2019 +0800
学习工作区和暂存区 $ git log -n2 --oneline 4d2bddd (HEAD -> master) rename d34df54 学习工作区和暂存区 $ git branch -v * master 4d2bddd rename $ git checkout -b temp d34df54beffb33cf6e4f Switched to a new branch 'temp' $ vi readme $ git commit -am 'add test' [temp 543c5d8] add test 1 file changed, 1 insertion(+) $ git branch -av master 4d2bddd rename * temp 543c5d8 add test $ git log commit 543c5d84e8b5f2996e1a40745262f39df95eebaf (HEAD -> temp) Author: xxx <xxx@xxx.com> Date: Mon Apr 29 22:12:57 2019 +0800
add test
commit d34df54beffb33cf6e4f4e97d0f0e24f2b676d51 Author: xxx <xxx@xxx.com> Date: Mon Apr 29 21:02:02 2019 +0800
学习工作区和暂存区
commit 33f7ae4c4d4da85453ed0077670e242b71d0a621 Author: xxx <xxx@xxx.com> Date: Sun Apr 28 22:19:09 2019 +0800
Add readme $ git log --all commit 543c5d84e8b5f2996e1a40745262f39df95eebaf (HEAD -> temp) Author: xxx <xxx@xxx.com> Date: Mon Apr 29 22:12:57 2019 +0800
add test
commit 4d2bdddf4098e40ce57fdaf04bb862f7bea04918 (master) Author: xxx <xxx@xxx.com> Date: Mon Apr 29 21:36:15 2019 +0800
rename
commit d34df54beffb33cf6e4f4e97d0f0e24f2b676d51 Author: xxx <xxx@xxx.com> Date: Mon Apr 29 21:02:02 2019 +0800
学习工作区和暂存区
commit 33f7ae4c4d4da85453ed0077670e242b71d0a621 Author: xxx <xxx@xxx.com> Date: Sun Apr 28 22:19:09 2019 +0800
Add readme $ git log --all --graph * commit 543c5d84e8b5f2996e1a40745262f39df95eebaf (HEAD -> temp) | Author: xxx <xxx@xxx.com> | Date: Mon Apr 29 22:12:57 2019 +0800 | | add test | | * commit 4d2bdddf4098e40ce57fdaf04bb862f7bea04918 (master) |/ Author: xxx <xxx@xxx.com> | Date: Mon Apr 29 21:36:15 2019 +0800 | | rename | * commit d34df54beffb33cf6e4f4e97d0f0e24f2b676d51 | Author: xxx <xxx@xxx.com> | Date: Mon Apr 29 21:02:02 2019 +0800 | | 学习工作区和暂存区 | * commit 33f7ae4c4d4da85453ed0077670e242b71d0a621 Author: xxx <xxx@xxx.com> Date: Sun Apr 28 22:19:09 2019 +0800 Add readme $ git log --oneline --all 543c5d8 (HEAD -> temp) add test 4d2bddd (master) rename d34df54 学习工作区和暂存区 33f7ae4 Add readme $ git log --oneline --all -n3 543c5d8 (HEAD -> temp) add test 4d2bddd (master) rename d34df54 学习工作区和暂存区 $ git log --oneline --all -n3 --graph * 543c5d8 (HEAD -> temp) add test | * 4d2bddd (master) rename |/ * d34df54 学习工作区和暂存区 $ git log --oneline --all temp 543c5d8 (HEAD -> temp) add test 4d2bddd (master) rename d34df54 学习工作区和暂存区 33f7ae4 Add readme $ git log --oneline temp 543c5d8 (HEAD -> temp) add test d34df54 学习工作区和暂存区 33f7ae4 Add readme
|