git拉取远程最新分支命令

更新本地的远程分支

git remote update origin --prune

查看远程分支

git branch -r

查看本地和远程分支

git branch -a

删除本地分支

git branch -d <local-branch-name>
git branch -D <local-branch-name>

删除远程分支

git push remote -d <remote-branch-name>

创建本地分支并关联远程分支

git checkout -b <local-branch-name> origin/<remote-branch-name>
posted @ 2025-05-14 10:14  ~逍遥★星辰~  阅读(34)  评论(0)    收藏  举报