#Git ####1、创建分支 在当前分支下创建别的分支(在develop分支下创建f5分支) ```bash git checkout -b f5 ```  **SourceTree下**  ####2、将分支推送到远程 ```bash git push origin f5 ```  ####3、查看分支 ```bash git breach -a #查看本地和远程分支 ```  ```bash git breach #查看本地分支 ```  ```bash git breach -r #查看远程分支 ```  ####4、删除分支 ------------ ***注意::exclamation:*** *1.删除前一定要确认该分支是丢弃的 2.删除后分支不能再找回 3.删除分支前需要切换至别的分支* ------------ ```bash git checkout develop #从f5分支切换至develop分支 ```  ```bash git branch -d f5 #删除本地f5分支 git brach #查看本地分支上f5是否被删除 git branch -r #查看远程分支 ```  ```bash git push origin --delete f5 #删除远程f5分支 git branch -r #查看远程f5分支是否被删除 ```  Last modification:February 20th, 2021 at 11:08 am © 允许规范转载 Support 如果觉得我的文章对你有用,请随意赞赏 ×Close Appreciate the author Sweeping payments Pay by AliPay Pay by WeChat