Accidentally Hit Discard Changes Microsoft Word

-->

Accidentally hit discard changes microsoft word 2016 markups and ink

Sometimes, however, the data can be lost if changes were made to a document, then saved over. If you cannot undo the changes to a saved Word document, it is still possible to look for other, unchanged versions of the document. Step 1 Search for all versions of the document in question.

You can try to recover a Word document by:

If you're looking for information about how to recover other recent Office files, see the following articles:

  1. I could understand your feeling when you can't find recent changes made to the document. If you click 'Don't Save' when closing the document, the changes you made since you last saved the document will be not saved. We can't find them back. About the changes you made before last time the file was saved, it may be two scenarios: 1.
  2. I opened an attached word document and made changes to it in Microsoft Word 2007. I saved the document as I - Answered by a verified Microsoft Office Technician We use cookies to give you the best possible experience on our website.
  3. 1 – Open MS Word. 2 – Click File Info Manage Versions Recover Unsaved Documents. If the planets are in perfect alignment and there are no black cats around, you should be able to recover at least part of your “abandoned” document (s).
  4. Microsoft provides built-in alert policies that help identify Exchange admin permissions abuse, malware activity, potential external and internal threats, and information governance risks. On the Alert policies page, the names of these built-in policies are in bold and the policy type is defined as System.

If you can’t open the document, or the content in the document is damaged, see How to troubleshoot damaged documents in Word.

To find a lost document:

Search for Word documents

Try searching for the document in Windows:

  1. Select Start, type the document name (in Windows 8.1, type the name in the Search box), and then press Enter.
  2. If the Documents list (or Files list in Windows 8.1) contains the document, double-click the document to open it in Word.

If the search results don't contain the file, go to the next method.

Searching for Word backup files

Word backup file names have a '.wbk' extension. If you have the 'backup copy' option selected in Word, there might be a backup copy of the file.

To check whether this option is on, select File > Options > Advanced, scroll down to the Save section, and then select Always create backup copy.

If you have a Microsoft 365 subscription, check these two folder locations for a backup file:

  • C:Users<UserName>AppDataRoamingMicrosoftWord
  • C:Users<UserName>AppDataLocalMicrosoftOfficeUnsavedFiles

Note: In these paths, replace <UserName> with your username.

To find the backup copy of the file, select Start, enter .wbk in the Search box, and then press Enter. If you find any files that have the name 'Backup of' followed by the name of the missing file, double-click the file name to open it.

If you don’t find a backup file for the document, go to the next method.

Checking the Recycle Bin

If you deleted a Word document without emptying the Recycle Bin, you might be able to restore the document.

  1. Double-click the Recycle Bin on the Desktop.
  2. Search through the list of documents to see whether the deleted Word document is still there. If you don't know the file name, look for file types such as .doc, .docx, and .dot.
  3. If you find the desired Word file, right-click the file name, and then select Restore to recover the file.

If you don't find the desired file, go to the next method.

Windows File Recovery Tool

If you are using Windows 10, version 2004 or later, you can try the Windows File Recovery tool. Windows File Recovery is available from the Microsoft Store. You can use it to recover files that have been permanently deleted. For more information about this tool, see Recover lost files on Windows 10.

Restoring documents saved to SharePoint and OneDrive

For documents that you saved or synced to SharePoint, see Restore items in the recycle bin that were deleted from SharePoint or Teams.

For documents that you saved or synced to OneDrive, see Restore deleted files or folders in OneDrive.

To find missing content or a newer version:

Word takes different actions to protect your changes in Word documents:

  • If Word opens a document from SharePoint or OneDrive, the program uses AutoSave to save changes to the “cloud” document. We recommend that you leave the AutoSave feature set to On.

  • If Word opens a document from your local disk or network shared folder, Word uses AutoRecover to save changes to an AutoRecover file. The default AutoRecover save interval is 10 minutes. We recommend that you leave the AutoRecover feature set to On.

Restarting Word to open AutoRecover files

Word searches for AutoRecover files every time it starts. Therefore, you can try using the AutoRecover feature by closing and reopening Word. If Word finds any automatically recovered file, the Document Recovery task pane opens, and the missing document should be listed as 'document name [Original]' or as 'document name [Recovered].' If this occurs, double-click the file name in the Document Recovery pane, select File > Save as, and then save the document as a .docx file. To manually change the extension to .docx, right-click the file, and select Rename.

Note In Microsoft 365 Subscription, when Word starts, it searches for AutoRecover files. If any recovered files are found, Word opens them by having a Message Bar. Select Save to save the recovered file as a .docx file. If there are many recovered files, Word usually opens the last-changed files, and puts the remaining files into the Document Recovery task pane.

Searching for AutoRecover files

If you have a Microsoft 365 subscription, check the following folder locations for backup files:

  • C:Users<UserName>AppDataRoamingMicrosoftWord
  • C:Users<UserName>AppDataLocalMicrosoftOfficeUnsavedFiles

Note: In these paths, replace <UserName> with your username.

If you don’t find the missing file in these locations, open Word, and select File > Info > Manage Document > Recover Unsaved Documents.

If you still haven’t found the file, try manually searching for AutoRecover files. To do this, select Start, enter .asd in the Search box, then press Enter.

If you find any files that have the .asd extension, follow these steps:

  1. Open Word, and then go to File > Open > Browse.
  2. In the files of type list to the right of File name, select All Files.
  3. Right-click the backup file that you found, and then select Open.

If there are no .asd files, go to the next method.

Searching for temporary files

Temporary file names have a .tmp extension. To find these files, follow these steps:

  1. Select Start, type .tmp (in Windows 8.1, type .asd in the Search box), and then press Enter.
  2. Select the Documents tab.
  3. Scroll through the files to search for file names that match the last few dates and times that you edited the document.
    • If you find the missing file, go to step 4.
    • If you don’t find the file, repeat steps 1 through 3, but search on the tilde character (~) instead of .tmp (temporary file names start with a tilde).
  4. In Word, go to File > Open, and then select the Folders tab.
  5. Navigate to or search for the folder where you found the .tmp file, and then select the folder name to open the folder contents pane.
  6. At the top of the pane, select the name of the folder. This opens File Explorer.
  7. In File Explorer, change the file type (next to the file name field, near the bottom) to All files.
  8. Open the .tmp file.

References

-->

Azure Repos | Azure DevOps Server 2020 | Azure DevOps Server 2019 | TFS 2018 | TFS 2017 | TFS 2015 | VS 2017 | VS 2015

When undoing changes in Git, first decide what type of changes you are looking to undo. These changes fall into three categories:

  • Discard uncommitted changes to a file, bringing the file back to the version in the last commit.
  • Reset your local branch to a previous commit.
  • Revert changes pushed to a remote branch and shared with others.

If you just need to make small updates such as to fix a typo or small problem introduced in your last commit, consider amending your previous commit or fixing the changein a new commit instead of any of these other steps.

In this tutorial you learn how to:

  • Discard uncommitted changes to a single file
  • Revert changes in shared commits
  • Reset a branch to a previous state

Discard uncommitted changes to a single file

Restore file contents back to a known good version, removing unwanted changes.

Warning

These commands will overwrite your existing file changes. If you think you might want these changes later, consider stashing them instead.

Note

If you're using Visual Studio 2019 version 16.8 or later, we encourage you to try the Git version control experience. Learn more about how the Git experience compares with Team Explorer on this Side-by-side comparison page.

Visual Studio 2015 & 2017

  1. Open up the Changes view in Team Explorer.

  2. Under the Changes section, find the file that you want to restore to the previous version. If your change is staged, remove it from the Staged Changes section by right-clicking and selecting Unstage.

  3. Right-click that file and select Undo Changes.

You can use the checkout command and give it the filename(s) to change. Use wildcards for undoing changes to multiple files.

You can revert the file to the version in a specific commit by providing the commit ID:

This differs from the earlier use of the checkout command used to swap to a different branch.Git will tell you if it is changing a file or swapping between branches in the output, and complain if it's not clear which one you are trying to do.

Revert changes in shared commits

Use revert to undo the changes made in your commits pushed to shared branches. The revert command creates a new commit that undoes the changes on a previous commit. No history is rewrittenin a revert, making it safe to use when working with others.

Note

If you're using Visual Studio 2019 version 16.8 or later, we encourage you to try the Git version control experience. Learn more about how the Git experience compares with Team Explorer on this Side-by-side comparison page.

Open up the Changes view in Team Explorer. Select Actions and choose View History from the drop-down. In the history window that appears, right-click the commit to undo andselect Revert from the context menu.

These commands will undo the changes made in commit 8437fbaf and create a new commit on the branch. The original commit at commit_id is still in the Git history.Revert is flexible but it requires a branch history and commit identifiers to use. Review your history to find the commits you want to revert.

Accidentally Hit Discard Changes Microsoft Word For Mac

Reset a branch to a previous state

Use reset to bring a branch in your local repository back to the contents of a previous commit. The most common use of the reset command isto simply discard all changed files since the last commit and return the files to the state they were in at the most recent commit.

Accidentally Hit Discard Changes Microsoft Word 2016 Markups And Ink

Warning

Don't use reset on branches shared with others. Use revert instead.

Accidentally Hit Discard Changes Microsoft Word 2010

  1. Open up the Changes view in Team Explorer.

  2. Select Actions and choose View History from the drop-down.

  3. In the history window that appears, right-click the commit to reset the repo to and select Reset from the context menu.

  4. Choose Reset and delete changes....

The --hard part of the command tells Git to reset the files to the state of the previous commit and discard any staged changes.The HEAD argument tells Git to reset the local repository to the most recent commit. If you want to reset the repo to a different commit, provide the ID instead of HEAD.

A reset affects all files in the current branch on the repository, not just those in your current directory. Reset only discards changes that haven'tbeen committed yet.

Accidentally Hit Discard Changes Microsoft Word Tutorial

Next steps