Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to discard multiple files in SourceTree?

I am able to discard my changes in source tree but had to select 1 file at a time if I select multiple its still discard only 1 at a time. Is there any way in source tree to discard more than 1 file at same time??

I am using version 2.1

like image 934
Tarun Seera Avatar asked Jun 01 '17 13:06

Tarun Seera


People also ask

What is staged and unstaged files in SourceTree?

The unstaged files are just the files with the last modifications you brought. The staged file are like a snapshot that you take at a T time, Git will store these snapshots under staged files (one snapshot/file at a time).


Video Answer


2 Answers

Follow steps to discard multiple uncommited changes in Sourcetree.

New version of Sourcetree does not have -Reset- button as mentioned previous answer. Thus, please follow these 5 steps for solution.

  1. Right click "File status" and click "Reset...".

enter image description here

  1. Select files. If you want, you can select all of them like the below image.

enter image description here

  1. Click "Reset All".

enter image description here

  1. Again click "Reset All".

enter image description here

  1. Click "Reset".

enter image description here

Welldone..! No more 302 files to discard.

enter image description here

like image 59
DevPolarBear Avatar answered Oct 19 '22 14:10

DevPolarBear


Finally found the option in Source Tree

  • Click on Reset button from tool bar
  • Select multiple file you want to discard
  • Click on discard button

You can also Reset all to discard all uncommitted changes

Refer the screen shot Reset option in spruce tree

like image 26
Tarun Seera Avatar answered Oct 19 '22 16:10

Tarun Seera