例如,我有以下分支:
- 主 -> 跟踪原点/主
- 特征/f1 -> 跟踪原点/特征/f1
- feature/f2 -> 跟踪 origin/feature/f2 和 .gitconfig
[ remote "origin"]
url = ...
fetch = +refs/heads/*:refs/remotes/origin/*
现在我只想查看功能分支,因此将 .gitconfig 更新为:
[ remote "origin"]
url = ...
fetch = +refs/heads/feature*:refs/remotes/origin/feature/*
有没有办法删除本地存储的主分支,而不在远程服务器上删除它?