Re: [RFC/GSOC] Git Beginner | Warnings for potentially destructive commands (v2)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sidhant Sharma <tigerkid001@xxxxxxxxx> wrote:
> $ ggit push --force
> 
> Pushing changes to $REMOTE/$BRANCH
> [WARNING] You are about to purge commits from the $REMOTE/$BRANCH branch and
> overwrite it's history to match yours.
> For instance, assume the following history exists where 'origin' is
> a configured remote and the current branch is master:
> 
>         o---o---o---A---B  origin/master
>              \
>               X---Y---Z  your master
> 
> After force push:
> 
>         o---o---o---X---Y---Z  origin/master and your master

It should be:

        o---o---X---Y---Z  origin/master and your master

(The last 'o' commit should have been overwritten by the force push)

Thanks,
Rémi
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]