Tim Holloway wrote:This is going to be messy.
Git is designed to allow you to make and archive changes locally and then merge them unto a remote repository. So the first thing you have to sort out is whether the remote repository has any of those loose-cannon changes. If not, then it's just your local system that needs cleaning up.
If you have uncommitted changes that you want to discard, there's a git command to back them out. If they are already committed, you might want to make a git branch off them. Then you should be able pull the good code from the remote, discarding the changes in the mainline branch. At that point you might want to spin off another branch from the clean remote copy, switch to the new branch, and judiciously merge the changes you want from your first branch. Then you should be in good shape to merge from the new branch back into the mainline. It's actually not a bad idea to work on branches rather than directly with the mainline code when you're working in a group anyway.
There's also something called a "git stash" that can be used to temporarily keep things while you're working it all out.
Note that I haven't mentioned any Eclipse options or git shell commands. That's because I'm still not sure exactly what you have.
Er...I actually wanted to sort out all the mess the shortest time but now I think I ended up with a much bigger mess.
So, I actually copied to back-up copy to a new Eclipse IDE.
But, now, even after remove the .git folder, and then after rebuild my
maven it is not able to build at all.
All it is giving me is
The requested profile "1" could not activated because it does not exist.
Is there anyway to make Maven build successfully in this case?
I have wasted the whole of yesterday and all these troubleshooting is making me so tired

and then I still haven't figure out how to make the "continous testing" using shell script ....
Please advise me if there is a solution on the above.
Tks and belated Merry Christmas.