From 4a77ed6bb2827d723df94eab0633b36819dc4e56 Mon Sep 17 00:00:00 2001 From: psxvoid Date: Mon, 4 Nov 2024 13:54:23 +0000 Subject: [PATCH] Added a comment: possible fix --- ..._902f5c6ccc6b65ecdbc89b3bf3a2468a._comment | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 doc/forum/Stuck_in_git_annex_view__58___file_name_too_long/comment_1_902f5c6ccc6b65ecdbc89b3bf3a2468a._comment diff --git a/doc/forum/Stuck_in_git_annex_view__58___file_name_too_long/comment_1_902f5c6ccc6b65ecdbc89b3bf3a2468a._comment b/doc/forum/Stuck_in_git_annex_view__58___file_name_too_long/comment_1_902f5c6ccc6b65ecdbc89b3bf3a2468a._comment new file mode 100644 index 0000000000..db46974388 --- /dev/null +++ b/doc/forum/Stuck_in_git_annex_view__58___file_name_too_long/comment_1_902f5c6ccc6b65ecdbc89b3bf3a2468a._comment @@ -0,0 +1,25 @@ +[[!comment format=mdwn + username="psxvoid" + avatar="http://cdn.libravatar.org/avatar/fde068fbdeabeea31e3be7aa9c55d84b" + subject="possible fix" + date="2024-11-04T13:54:23Z" + content=""" +Hi, + +Seem like I've managed to fix it by openning `.git/HEAD` file with VIM, and then changing: + +``` +ref: refs/heads/views/main(tag=_) +``` + +to this: + +``` +ref: refs/heads/main +``` + +Saved the file, then ran `git stash --all`. Which returned the repo to the original state. + +Also before `git stash --all`, I ran `git restore .` `git annex fsck`, and `git add -A` but those didn't change anything. + +"""]]