开发者

Removing a branch hosted with gitosis

开发者 https://www.devze.com 2022-12-18 09:20 出处:网络
I have a git repo hosted on my server using gitosis. I had branches master and template, I renamed the template branch to develop and pushed the develop branch to the gitosis repo which created a 开发

I have a git repo hosted on my server using gitosis. I had branches master and template, I renamed the template branch to develop and pushed the develop branch to the gitosis repo which created a 开发者_JS百科new branch named develop, but if I look in the repo_dir/refs/heads dir of my gitosis repo the template branch is still there, how can I remove this branch from the repo?


I don't know gitosis but I don't see why it would be any different

$ git push origin :template

The above command will delete the branch from your origin.

0

精彩评论

暂无评论...
验证码 换一张
取 消