From 96af1a63ac88db3637d24cbd6f99790f81d4491c Mon Sep 17 00:00:00 2001 From: Randy8080 Date: Wed, 15 Dec 2021 20:28:37 +0800 Subject: [PATCH] Some optimize --- git.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/git.md b/git.md index 28b253e..ea36f0f 100644 --- a/git.md +++ b/git.md @@ -123,14 +123,14 @@ List all branches, local and remote $ git branch -av ``` -Switch to a branch, my_branch, and update working directory +Switch to my_branch, and update working directory ``` shell script $ git checkout my_branch ``` Create a new branch called new_branch ``` shell script -$ git branch new_branch +$ git checkout -b new_branch ``` Delete the branch called my_branch @@ -284,6 +284,7 @@ $ git log --stat -M ``` /logs/* +# "!" means don't ignore !logs/.gitkeep /# Ignore Mac system files