Skip to main content
Hosun
Inspiring
July 23, 2019
Answered

Recovery of code

  • July 23, 2019
  • 3 replies
  • 4731 views

Hi,

While copying and pasting, I lost many lines of code.

Is there any way to go back to the previous version?

Hosun Kang

This topic has been closed for replies.
Correct answer osgood_

If Ctrl or Cmd + Z doesn't undo what you did,  there is nothing DW can do to recover your code.  Do you have an older copy of the file on your remote server that you can recover the code from?

It's good practice to use Git version control and keep dedicated backup copies of your work somewhere just in case something goes wrong.  

Learn how to download and use Git with Dreamweaver.


You dont need git on simple jobs you just need to be more organised. Keep regular back ups, copies of the file. Also you should have some kind of automatic back up installed on your computer by default. Every  Mac has time machine installed which regularly backs up your work through out the day. I dont know if a pc has anything similar. Git is best applied when a team is involved. Its just a glorified back up, distribution system, if you dont commit your changes are not saved.

3 replies

B i r n o u
Legend
July 23, 2019

sorry I have to go, tomorrow I should wake up at 5 and it's already 2

B i r n o u
Legend
July 23, 2019

let us quickly mark our answers as useful for fear of appearing abstruse

Legend
July 23, 2019

Since no one else in this thread obviously has any idea of what they aee doing or suggesting  one has to take matters into their own hands so people actually get to know the truth

Legend
July 24, 2019
  1. Glad to see that you are following the Professionals at work
  2. That someone has no idea about App Connect, it differs little from your favourite VueJS
  3. Brad is a funny guy, pity you did not get his lighthearted comment.

BenPleysier  wrote

  1. Glad to see that you are following the Professionals at work
  2. That someone has no idea about App Connect, it differs little from your favourite VueJS
  3. Brad is a funny guy, pity you did not get his lighthearted comment.

I check in for the entertainment in most cases. Some guy having trouble with a login page redirecting to a confirmation page - 23hrs later still no progress..........hmmmmm I guess that's as professional as it gets.

App Connect is a niche workflow with much less than 5000 users, even if we assume all of those 5000 have subscribed, which is hugely doubtful. On the other hand Vue is deployed by millions of users worldwide....so yes, no difference really.

I think Brad was being deadly serious in his response. On the face things look good until someone starts questioning the merits of a workflow that should at least be consider by a professional developer in the best interests of their client, not themselves.

These are just my opinions, everyone is entitled to their own of course.

Nancy OShea
Community Expert
Community Expert
July 23, 2019

Ctrl+Z = undo.  Repeat as many times as required.

Nancy O'Shea— Product User & Community Expert
Hosun
HosunAuthor
Inspiring
July 23, 2019

Hi,

Thank you for reply.

It doesn't work.

Is there any way to move the whole file back to the previous version?

I got Global Invisible Hand.

Is there any easy way to recover the code from there?

Hosun Kang

Nancy OShea
Community Expert
Community Expert
July 23, 2019

If Ctrl or Cmd + Z doesn't undo what you did,  there is nothing DW can do to recover your code.  Do you have an older copy of the file on your remote server that you can recover the code from?

It's good practice to use Git version control and keep dedicated backup copies of your work somewhere just in case something goes wrong.  

Learn how to download and use Git with Dreamweaver.

Nancy O'Shea— Product User & Community Expert