[petsc-dev] moronic git

Geoffrey Irving irving at naml.us
Sat Nov 16 22:37:24 CST 2013


On Sat, Nov 16, 2013 at 8:13 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:
>
>   What part of delete does git not understand? How the f do I get rid of the damn branch completely  so I can create a new one with the same name and use it?
>
>
> ~/Src/petsc/src/ts/examples/tutorials/advection-diffusion-reaction  master $ git branch -D barry/saws-update
> Deleted branch barry/saws-update (was 9f236db).
> ~/Src/petsc/src/ts/examples/tutorials/advection-diffusion-reaction  master $ git branch barry/saws-update
> ~/Src/petsc/src/ts/examples/tutorials/advection-diffusion-reaction  master $ git checkout barry/saws-update
> M       include/petscoptions.h
> M       include/petscviewer.h
> M       src/sys/classes/viewer/impls/string/stringv.c
> M       src/sys/objects/aoptions.c
> M       src/sys/objects/options.c
> M       src/sys/objects/pinit.c
> Switched to branch 'barry/saws-update'

This did create a new branch.  All information in the old branch was
lost, and the new barry/saws-update was set to whatever your current
branch was.

Geoffrey



More information about the petsc-dev mailing list