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