From 2cad4b95f4f850c01752fb244b1de80ba5bf3d27 Mon Sep 17 00:00:00 2001 From: AlexPraga Date: Fri, 14 Oct 2022 09:28:38 +0000 Subject: [PATCH] --- doc/forum/Failed_to_push_on_git-lfs.mdwn | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 doc/forum/Failed_to_push_on_git-lfs.mdwn diff --git a/doc/forum/Failed_to_push_on_git-lfs.mdwn b/doc/forum/Failed_to_push_on_git-lfs.mdwn new file mode 100644 index 0000000000..4cae1c3aa4 --- /dev/null +++ b/doc/forum/Failed_to_push_on_git-lfs.mdwn @@ -0,0 +1,22 @@ +Hi, + +I've setup a remote on Github with LFS enabled. Running `git-annex sync --content` failed to push on the main branch : +``` +pull lfstest +From github.com:myuser/myremote + * branch HEAD -> FETCH_HEAD +ok +push lfstest +Everything up-to-date +To github.com:myuser/myremote.git + ! [rejected] main -> main (non-fast-forward) +error: failed to push some refs to 'github.com:myuser/myremote.git' +hint: Updates were rejected because the tip of your current branch is behind +hint: its remote counterpart. Integrate the remote changes (e.g. +hint: 'git pull ...') before pushing again. +hint: See the 'Note about fast-forwards' in 'git push --help' for details. +ok +``` +Is this an expected behaviour ? Is it possible to correct the push failure ? + +Thans in advance