Script47 Posted November 4, 2013 Share Posted November 4, 2013 I have always been a fan of Eclipse IDE's and I thought I would point out that they also have a PHP IDE which I found just a little heads up if you didn't know already. However this thread is not about that. Today I deleted the wrong file in a project, meaning I lost quite a bit of code, I searched around and found that you can actually retrieve files back (thankfully the developers knew how clumsy people get using a keyboard & mouse). Anyway it's quite simple to do so, I will explain it as I found it to be quite a neat little feature and will help people who do this by mistake. Click your project name. Then right click and scroll down and find "Restore from Local History". All the files you may have deleted I'm not sure how long ago or if it wipes each time you close Eclipse but they should be there. Tick the boxes of files you want back, then click restore. You should have them all back! :D Quote Link to comment Share on other sites More sharing options...
Dave Posted November 12, 2013 Share Posted November 12, 2013 I have always been a fan of Eclipse IDE's and I thought I would point out that they also have a PHP IDE which I found just a little heads up if you didn't know already. However this thread is not about that. Today I deleted the wrong file in a project, meaning I lost quite a bit of code, I searched around and found that you can actually retrieve files back (thankfully the developers knew how clumsy people get using a keyboard & mouse). Anyway it's quite simple to do so, I will explain it as I found it to be quite a neat little feature and will help people who do this by mistake. Click your project name. Then right click and scroll down and find "Restore from Local History". All the files you may have deleted I'm not sure how long ago or if it wipes each time you close Eclipse but they should be there. Tick the boxes of files you want back, then click restore. You should have them all back! :D I'd suggest using some form of SCM tool (SVN, Git) to keep tracking of your work and changes. Then if you were to delete the whole project you could simply checkout the previous commit. Quote Link to comment Share on other sites More sharing options...
Guest Posted November 12, 2013 Share Posted November 12, 2013 As Dave said, SVN is much easier however it is "dying" out, professionally speaking people are moving over to GIT to you might as well get used to that if you are working with something. Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted November 12, 2013 Share Posted November 12, 2013 *Cough*, *cough*, SVN dying? Way not sure about that. However GIT, Mercurial, SVN, or others would be the way to go for sure. Quote Link to comment Share on other sites More sharing options...
Guest Posted November 12, 2013 Share Posted November 12, 2013 *Cough*, *cough*, SVN dying? Way not sure about that. However GIT, Mercurial, SVN, or others would be the way to go for sure. "dying", professionally speaking, more and more companies are moving from SVN to GIT. Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted November 12, 2013 Share Posted November 12, 2013 well... as said I'm not sure about your info. GIT does offer some advantages as well as quite some drawbacks as well. Quote Link to comment Share on other sites More sharing options...
Guest Posted November 12, 2013 Share Posted November 12, 2013 well... as said I'm not sure about your info. GIT does offer some advantages as well as quite some drawbacks as well. My info? Both companys I have previously worked for are now on GIT. Want me to do a job search for you? And compare how many use GIT vs SVN? Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted November 13, 2013 Share Posted November 13, 2013 I use netbeans and just recently discovered that it has git functionality as well and also you can revert back to a previous save state Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted November 13, 2013 Share Posted November 13, 2013 http://www.ohloh.net/repositories/compare Quote Link to comment Share on other sites More sharing options...
Guest Posted November 13, 2013 Share Posted November 13, 2013 http://www.ohloh.net/repositories/compare As I say... it's dying out Quote Link to comment Share on other sites More sharing options...
HauntedDawg Posted November 13, 2013 Share Posted November 13, 2013 As I say... it's dying out I don't know where you get your information from. But how does 46% over 38% mean its dying out? Sure, yeah, people are trying out different repositories, but it does not mean its simply "dying out". I for one know 3 corporations here in SA that use SVN, and have tried GIT and they will never use it again, as SVN accommodates there usage more. Just because you worked for 2 companies that used git, does not mean its DYING OUT! Now, to climb on the bandwaggon, we can search on google SVN vs GIT, and most people will say GIT, others will say SVN, and then the random few will just utterly not bother and suggest bazaar. Ill put it like this: http://svenpet.com/2013/02/21/dont-use-git/ - DONT USE GIT. http://www.altdevblogaday.com/2011/03/09/its-time-to-stop-using-subversion/ - DONT USE SVN. Everyone has their opinions, and for you to say its dying out, is utterly stupid. Quote Link to comment Share on other sites More sharing options...
Guest Posted November 13, 2013 Share Posted November 13, 2013 (edited) I don't know where you get your information from. But how does 46% over 38% mean its dying out? Sure, yeah, people are trying out different repositories, but it does not mean its simply "dying out". I for one know 3 corporations here in SA that use SVN, and have tried GIT and they will never use it again, as SVN accommodates there usage more. Just because you worked for 2 companies that used git, does not mean its DYING OUT! Now, to climb on the bandwaggon, we can search on google SVN vs GIT, and most people will say GIT, others will say SVN, and then the random few will just utterly not bother and suggest bazaar. Ill put it like this: http://svenpet.com/2013/02/21/dont-use-git/ - DONT USE GIT. http://www.altdevblogaday.com/2011/03/09/its-time-to-stop-using-subversion/ - DONT USE SVN. Everyone has their opinions, and for you to say its dying out, is utterly stupid. I think you're getting the wrong impression. I don't mean it's completely dead, but it seems more and more companies are adopting git over SVN. GIT was founded initially in 2005 SVN in 2000 SVN has 5 years on GIT, however due to GIT being newer is still retains a 38%, give it another 5 years as the way it's going and it will have a 60-70% market hold. According to the stats posted by AB (http://www.ohloh.net/repositories/compare), so SVN having 5 years on GIT yet only has a 8% greater hold on users. Make sense? Would you like a graph drawn out for you to represent the decline of SVN vs GIT? Edited November 13, 2013 by Guest Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted November 13, 2013 Share Posted November 13, 2013 Well, another 5 years of life if that's what you think, it's still far from being dead in term of software life. Plus you know that many still use CVS? ;) Anyhow I will definitively agree that GIT is slowly but surely growing. Quote Link to comment Share on other sites More sharing options...
Dave Posted November 13, 2013 Share Posted November 13, 2013 Both have advantages and disadvantages. SVN maybe better in some circumstance whilst Git might be more suitable in others. Let's try and keep this friendly guys. Quote Link to comment Share on other sites More sharing options...
Guest Posted November 13, 2013 Share Posted November 13, 2013 Well, another 5 years of life if that's what you think, it's still far from being dead in term of software life. Plus you know that many still use CVS? ;) Anyhow I will definitively agree that GIT is slowly but surely growing. I guess we can agree on that, I may have come across harsh on the dying part, however GIT is growing and will eventually take over SVN within companies... unless something catastrophic happens. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.