$ git log --oneline --all --graph --decorate * 1efcf18 (HEAD -> master) 4 commit * 6a7ace8 3 commit * 3be5879 2 commit * 3d1a4d4 1 commit $ git branch * master $ git branch dev 3be5879 $ git branch dev * master $ git log --oneline --all --graph --decorate * 1efcf18 (HEAD -> master) 4 commit * 6a7ace8 3 commit * 3be5879 (dev) 2 commit * 3d1a4d4 1 commit $ git checkout dev Switched to branch 'dev' $ touch dev_file $ git add . $ git commit -m 'dev commit' [dev c7b5ce1] dev commit 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 dev_file $ git log --oneline --all --graph --decorate * c7b5ce1 (HEAD -> dev) dev commit | * 1efcf18 (master) 4 commit | * 6a7ace8 3 commit |/ * 3be5879 2 commit * 3d1a4d4 1 commit