From c117ffd14d080cd3c8f94a2c3f6e70cc300410ae Mon Sep 17 00:00:00 2001 From: Randy8080 Date: Tue, 20 Jul 2021 15:04:27 +0800 Subject: [PATCH] Rename branch card changed to timeline style --- git.md | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/git.md b/git.md index fba8571..7e3d1d8 100644 --- a/git.md +++ b/git.md @@ -300,19 +300,21 @@ A `.gitignore` file specifies intentionally untracked files that Git should igno Tricks {.cols-3} ------ -### Rename branch -1\. Rename the local branch -```shell script -$ git branch -m -``` -2\. Push and reset the upstream branch -```shell script -$ git push origin -u -``` -3\. Delete the remote branch -```shell script -$ git push origin --delete -``` +### Rename branch +- #### **Renamed** to `new_name` + ```shell script + $ git branch -m + ``` +- #### **Push** and reset + ```shell script + $ git push origin -u + ``` +- #### **Delete** remote branch + ```shell script + $ git push origin --delete + ``` +{.style-timeline} + ### Log Search change by content