Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cbi-dev] How do you pull the latest from the prototype

I think the proper long-term solution is to add required .gitignore
entries to make sure build output files are never committed to git (this
should be the case for any version control system, imho).

In the mean time, the following two commands should get your repository
back into clean state

   git submodule foreach 'git reset --hard HEAD'
   git submodule foreach 'git clean -fd'

Be careful to commit any *real* changes you may have, as "git-reset
--hard" will remove them without asking.


--
Regards,
Igor

On 12-03-19 1:05 PM, Paul Webster wrote:
On Mon, Mar 19, 2012 at 12:59 PM, Igor Fedorenko <igor@xxxxxxxxxxxxxx
<mailto:igor@xxxxxxxxxxxxxx>> wrote:

    Delete directories specified in -Dmaven.repo.local mvn invocation
    parameter (/var/tmp/lts/R4_localrepo and /var/tmp/lts/R3_localrepo as
    specified on the wiki). Or you can specify different directories, if you
    want to keep the old stuff around for whatever reason.

Sorry, it's not the maven repo.  I want to do a pull (for a merge) or
even a fetch and checkout one of the new branches.  But git won't
checkout with the Working Directory tree dirty.

A git status lists changes in all of the submodules.  I can't do a git
pull, or git reset, etc.  Going through submodule by submodule is
*extremely* painful.

I'm looking for a mvn clean (like make clean removes all derived
objects) or a git command that will wipe the entire working directory.

Later,
PW



--
Paul Webster
Hi floor.  Make me a sammich! - GIR


_______________________________________________
cbi-dev mailing list
cbi-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/cbi-dev


Back to the top