gitco

I have been experimenting with git lately, and one of the results were a replacement for the old ‘cvsco’ tool that I’m highly addicted to.


#!/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
cg status -w
git reset --hard

Leave a Reply

Your email address will not be published.

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.