更新时间:2023-11-30 13:42:22
可以通过三种方式创建新头像:
A new head can be created in three ways:
--force
时,会在您要推送到的存储库上创建一个新的磁头.提示:不必使用--force
(或等效的-f)时不要使用push --force
on the push command, a new head is created on the repository you push to. Hint: Do never use --force
(or its equivalent -f) with push when you do not have to在您的情况下,第22步将为远程存储库引入一个新的头.步骤#20中的push --force
不能帮助您看到它仅在#22中发生,因为您因此系统地使水银变暗,表明正在创建一个新的打印头.
In your case step #22 would introduce a new head to the remote repository. The push --force
in step #20 is not helping you to see that it only happens in #22 as you thus systematically mute mercurials hints that a new head is being created.
合并不同的头(或重新设置基准,但除非在某些情况下(例如未发布存储库和阶段< public),否则不会传播)会减少头的数量.
The number of heads are reduced when you merge different heads (or rebase - but that does not propagate except under certain conditions like non-publishing repository and phase < public).