1.删除并且屏蔽文件
git rm --cached *.xcuserstate git commit -m "Removed file that shouldn't be tracked"
2.删除远程分支
oschina:
git push oschina :your_branch_name
github:
git push origin :your_branch_name
3.删除本地分支
git branch -d your_branch_name
4.查看分支
git branch -a