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