Patrick Pelletier <[email protected]> writes: > Thanks! I did a "git clean -dfx" and that solved both of my previous > problems. > > I'd been so focused on the output of "git status" that I'd forgotten > to consider that my checkout could be "dirty" in files that were being > gitignored. (I'd previously tried building gnutls in that same > directory before I upgraded to Ubuntu 12.04, so that must be where the > dirty files came from. I just hadn't thought about that.)
I have been using a small tool called "git cruel checkout" which wipes a clean directory clean as if it were just checked out, you may find it useful in situations like this. It's inspired by the "cvsco" tool there applies to CVS. It is short, here it is: #!/bin/sh # gitco - cruel checkout. Discards everything that has not been # committed, and checkout missing files. # # Written by Simon Josefsson. Licensed under GPLv2 or later. # Contributions by Yann Dirson. git clean -d -x -f git status git reset --hard /Simon _______________________________________________ Help-gnutls mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-gnutls
