git中把commit删了后,并不是真正的删除,而是变成了悬空对象(dangling commit)。我们只要把把这悬空对象(dangling commit)找出来,用git rebase也好,用git merge也行就能把它们给恢复。 这里最重要的一个命令就是:git fsck –lost-found 。 如果你要查看文件的每个部分是谁修改的, 那么 git blame 就是不二选择. ...
Missingfr/config/fsck.adoc See original version for this content. DISCUSSION git-fsck teste le SHA-1 et l’intégrité générale des objets, et il fait un suivi complet de l’accessibilité et de tout le reste. Il affiche toute corruption qu’il trouve (objets manquants ou mauvais), et...
git-fsck tests SHA-1 and general object sanity, and it does full tracking of the resulting reachability and everything else. It prints out any corruption it finds (missing or bad objects), and if you use the --unreachable flag it will also print out objects that exist but that aren’t...
remote: gitdir=$(git rev-parse --git-dir);scp-p -P29418admin@192.168.0.1:hooks/commit-msg ${gitdir}/hooks/remote: Andthenamend the commit: remote: git commit--amend remote: Tossh://192.168.0.1:29418/demo! [remote rejected] HEAD -> refs/for/master ([cc2bf52] missing Change-Idinc...
git-fsck(1) git-gc(1) git-get-tar-commit-id(1) git-grep(1) git-gui(1) git-hash-object(1) git-help(1) git-http-backend(1) git-http-fetch(1) git-http-push(1) git-imap-send(1) git-index-pack(1) git-init-db(1) git-init(1) git-instaweb(1) git-log(1) git-lost-foun...
fsck.h8.79 KB 一键复制编辑原始数据按行查看历史 Junio C Hamano提交于12天前.Merge branch 'sj/ref-consistency-checks-more' #ifndef GIT_FSCK_H #define GIT_FSCK_H #include"object.h" #include"oidset.h" enumfsck_msg_type{ /* for internal use only */ ...
int fsck_error_cb_print_missing_gitmodules(struct fsck_options *o, const struct object_id *oid, enum object_type object_type, enum fsck_msg_type msg_type, enum fsck_msg_id msg_id, const char *message); struct fsck_options { fsck_walk_func walk; fsck_error error_func; unsigned strict...
fsck: stop checking commit->parent counts fsck: stop checking tag->tagged fsck: require an actual buffer for non-blobs fsck: unify object-name code fsck_describe_object(): build on our get_object_name() primitive fsck: use oids rather than objects for object_name API ...
217 224 git push . $commit:refs/heads/bogus && 218 225 rm -rf dst && @@ -255,6 +262,9 @@ test_expect_success 'fetch with fetch.fsck.skipList' ' 255 262 test_must_fail git --git-dir=dst/.git fetch "file://$(pwd)" $refspec && 256 263 ...
fsck: stop checking commit->parent counts fsck: stop checking tag->tagged fsck: require an actual buffer for non-blobs fsck: unify object-name code fsck_describe_object(): build on our get_object_name() primitive fsck: use oids rather than objects for object_name API ...