-1

Here's what gitstatus shows me:

MacBook:Ja.git alan$ git status
On branch alan-1
Your branch is up to date with 'origin/alan-1'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

    modified:   Ja/Views/DictionaryTab/DictionaryTabPage.xaml.cs
    modified:   Ja/Views/HomeTab/HomeTabPage.xaml
    modified:   Ja/Views/HomeTab/HomeTabPage.xaml.cs
    modified:   Ja/Views/MainPage.xaml.cs
    modified:   Ja/Views/SettingsTab/SettingsTabPage.xaml.cs
    modified:   Ja/Views/SettingsTab/Subscriptions.cs

no changes added to commit (use "git add" and/or "git commit -a")
MacBook:Ja.git alan$ 

Would appreciate advice as it's important I just go back to the point before I changed these files.

Alan2
  • 23,493
  • 79
  • 256
  • 450

1 Answers1

1

git checkout --name_of_file allows you to recover original versioon

nissim abehcera
  • 821
  • 6
  • 7
  • Is there a way to do that for all of the files at once or maybe better can I revert to the last commit locally? – Alan2 Feb 26 '19 at 11:01