简体   繁体   English

如果将提交提交到远程仓库中的git中,可以删除它们(在任何情况下)

[英]Will the commits can be deleted (in any case) if they are pushed in git in remote repo

Suppose i have the git repo 假设我有git repo

Now one of the user has merged with master and message i see is the squashed commit of the following 现在,用户之一已与master合并,我看到的消息是squashed commit of the followingsquashed commit of the following

Now when i click on that commit in bitbucket then i see 15 different commits with their message and hash 现在,当我单击bitbucket中的提交时,我会看到15 different commits及其消息和哈希

Now i can click on them individually and see individual commits 现在,我可以单独单击它们,并查看individual commits

Now i want to know that does those grouped commits be there on repo forever or they will be deleted with time 现在我想知道这些分组的提交是否会永久存在于回购中,否则它们将随着时间的流逝而被删除。

They will be there forever. 他们将永远在那里。 That's how git has been designed. 这就是git的设计方式。

This shows how to delete a Git commit, but I'm assuming it uses Git Shell. 显示了如何删除Git提交,但是我假设它使用Git Shell。 Here's something that might help. 可能会有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM