[petsc-dev] moronic git

Jed Brown jedbrown at mcs.anl.gov
Sun Nov 17 01:09:42 CST 2013


Barry Smith <bsmith at mcs.anl.gov> writes:

>   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).

This really deleted the branch.

> ~/Src/petsc/src/ts/examples/tutorials/advection-diffusion-reaction  master $ git branch barry/saws-update

This created a new branch at your current HEAD.

> ~/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 checked out that branch, so HEAD points at the new branch, but the
working tree is the same, and Git tells you what is modified in your
working tree.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20131117/2456f317/attachment.sig>


More information about the petsc-dev mailing list