Make sure to backup projects in explorer before doing initial Git stuff because this is a nightmare. That did trick for me but if you didn't do any commits, I don't really know how to help you. Then you can publish repository and clone it afterwards or copy/paste each file into notepad. Describe the bug When attempting to Discard Changes to a modified file, GitHub Desktop exits with an exception report Version & OS GitHub Desktop: Version 2.3.1 OS: Catalina Version 10.15.3 Steps. When you hover over each of them Github should say there's no files on disk but will still preview them on the right. When you click of first commit, there will be files shown on the right. If in history tab there's no commits, remove repository again and create new repository again on that same location with gitignore as before when files existed. It still wont let you revert them, though, using checkout, even with the -f option. This helped me - if there's commit, there's a history tab which should have commits. auto focus will be enabled, when AutoFocus.off, it wont and focus will lock as it was in the moment of change. You need to right-click the very narrow area between the line numbers and the +/- symbol for the Discard modified lines option to be available when you want to discard a contiguous block containing both added and removed lines. Afterwards, to remove all unstaged changes (those changes that differ only in whitespace), you can do: git checkout. gitignore properties and my project cleaned like I never even coded To stage changes that are not just whitespace changes, you can do: git diff -U0 -w -no-color git apply -cached -ignore-whitespace -unidiff-zero. Then I went to make a new repository on same location but with different. A common reason for this is that the Recycle Bin is set to delete items immediately. Receive error: 'Failed to discard changes to Recycle Bin. Confirm I wish to discard changes to the file. This shouldn't remove project from disk (it says in info box before deleting). Right-click on file and select 'Discard Changes'. I made a new repository on location that my actual project is, did commit and I was unhappy with.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |