Checkout from subversion and discard actual local changes in NetBeans
So I'm working on a project that is hosted on Google Code. Sometimes I use my desktop, other times I'm not home and I want to work on my laptop. To ease the development, I use subversion. To tell my problem, let's suppose the following scenario: First I create the project on my laptop, and commit it to Google Code. Next time I work on desktop computer, and I checkout the project and after doing some work I commit my changes. Now I want to update my project on my desktop to have the latest version, but the only available action in the right click menu of my project is "commit".
So how should I do this?
Note: Suppose that I also make some changes that I want to discard before the upda开发者_如何学编程te.
I think the command you're looking for is revert
.
I'm using Subclipse, and I just right-clicked on the project, went to "Team", and selected "Revert..." and removed local changes (after confirming what was being removed).
精彩评论