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
Adobe Expert
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
Adobe Expert
July 23, 2019

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

Brainiac
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

B i r n o u
Adobe Expert
July 23, 2019

Wow, the evening seems to have been busy... sorry I'm having trouble keeping up...

Nancy OShea
Adobe Expert
July 23, 2019

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

Nancy O'Shea— Product User, Community Expert & Moderator
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

osgood_Correct answer
Brainiac
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.


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.