无意中发现这 https://github.com/unbug/codelf,可以分类GitHub, Bitbucket等代码。。。还有
https://github.com/englianhu/my-git学习GitHub... 分享一下。
不过言归正传,昨儿编写了一整天的代码,结果在
push
的时候出现错误信息
当我
git lfs uninstall
了之后,才可以
push
,不过之后查阅了以下的文章得知可以恢复曾staged过的文件。
-
Recovering added file after doing git reset --hard HEAD^
-
restoring lost commits
-
Recover dangling blobs in git
-
git rebase a blob after a reset lost the changes
-
Recovering from mistakes in Git
I accidentlly reset hard HEAD the stage files which not yet commit, and then try to refer to below method to save :
git fsck --cache --no-reflogs --lost-found --unreachable HEAD
and follow by below coding
git show xxxxxxxxxxxxxxx > files.txt
请问哪位前辈可以指点下该怎么呈现文件内容,好让咱可以知道哪个文件才是最新的... 还有就是可否直接筛选从今早1am至3am中所编写的所有代码的blob呢?因为全部都是blob代码而已,至于时间则是下载所有历史记录的时间,而非编写代码的时间。重写的话就很头痛了! @@"
内容全是乱码,怎么解读达文齐密码呢?(可以在
git show xxxxxxxxxxxxxxx > files.txt
中添加个encoding 'utf-8'吗?)