bitbucket stripped git revisions

前端 未结 3 663
离开以前
离开以前 2021-02-06 01:30

After pushing to bitbucket my collegues commits are deleted and a message appears on bitbucket newsfeed

stripped 6f9de58aa748 from projektA
4 hours ago
stripped          


        
3条回答
  •  野性不改
    2021-02-06 01:39

    How can I rescue the commits?

    Unfortunately there is nothing you can do on your site to get these commits back (details). You need to contact the BB service team since only they can restore these commits.

    Is Git really a versioning system that allows to delete commits?

    When you configure it so. You have to set receive.denyNonFastForwards to true to disable this behavior in the repository on the server (which is the default when git init was run with the --shared option, but is false otherwise).

    Is this due to --force ?

    Yes, using the force parameter on git push does make the server side git to disable the safety check if your new branch head throws away other commits, and receive.denyNonFastForwards is false.

提交回复
热议问题