How to close a branch WITHOUT removing it from history in git?
问题 I'd like to make a commit and close its branch, without removing it from history . With mercurial I'd commit --close-branch , then update to a previous one, and go on working. With git... I'm confused. 回答1: There's no exact equivalent to closing a branch in Git, because Git branches are more lightweight than in Mercurial. Their Mercurial equivalent is more bookmarks than branches. If I understand correctly, closing a branch in Mercurial roughly makes it disappear from the branch list, so you