服务ForgeGitGit Branch FAQ本页总览Git Branch FAQ 切换分支但不捡出文件 # 文件变为暂存状态git symbolic-ref HEAD refs/heads/其他分支# 可以取消暂存git reset 移除分支 git branch -d the_local_branch git push origin :the_remote_branch 提交新的分支 git push --all 开始空的新分支 git checkout --orphan <branchname>git rm --cached -r .