Git:意外恢复而没有提交

时间:2016-05-26 20:55:40

标签: git android-studio

嘿,我看起来很麻烦。所以我打算使用GUI在Android Studio中提交我的文件,我不小心按下了还原按钮。我的最后一次提交是在4-5天后完成的,我知道这是一个不好的做法,我应该做出更多的提交。但我回到了5月23日的地方,我不知道如何回到我以前的状态,事实上甚至没有犯下这个状态。我搞砸了吗?有什么希望吗?请帮帮我们!!

1 个答案:

答案 0 :(得分:3)

是。在您提交之前,Git不知道对本地文件系统的更改。有些IDE会记录本地更改(例如IntelliJ会这样做),所以我相信这是你最好的镜头。按撤消快捷方式,查看会发生什么,或在菜单中查找“本地历史记录”。

如果您提交了更改,那么您可以在提交树中找到提交,或者正在查看$(document).ready(function() { // Infinite Ajax Scroll configuration jQuery.ias({ container : '.wrap', // main container where data goes to append item: '.item', // single items pagination: '.nav', // page navigation next: '.nav a', // next page selector loader: '<img src="css/ajax-loader.gif"/>', // loading gif triggerPageThreshold: 5, // show load more if scroll more than this onLoadItems: apply_changes() // OR: onLoadItems: function(items) { // Paste everything that function apply_changes() has. } } }); function apply_changes() { if($('#select_box').val() == 'notresolved') { $( '#table-tbody #table-tr').show(); $( "#table-tbody #table-tr:contains('Разрешен')").hide(); } if($('#select_box').val() == 'new') { $( '#table-tbody #table-tr').show(); $( "#table-tbody #table-tr:not(:contains('Нов'))").hide(); } if($('#select_box').val() == 'opened') { $( '#table-tbody #table-tr').show(); $( "#table-tbody #table-tr:not(:contains('Отворен'))").hide(); } if($('#select_box').val() == 'resolved') { $( '#table-tbody #table-tr').show(); $( "#table-tbody #table-tr:not(:contains('Разрешен'))").hide(); } if($('#select_box').val() == 'dead') { $( '#table-tbody #table-tr').show(); $( "#table-tbody #table-tr:not(:contains('Dead'))").hide(); } if($('#select_box').val() == 'all') { $( '#table-tbody #table-tr').show(); } }

相关问题