допустим, у меня есть файл 'A'. Я изменил файл и отправил его в хранилище с помощью следующих команд
git add A
git commit -m "changed A"
git push
позже, когда понял, что мне нужны изменения в файле 'B'поэтому я изменил его и запустил следующие команды
git add B
git commit --amend -m "changed AandB"
git push
но я получаю ошибку ..
error: failed to push some refs to 'https://xxx@github.com/xx/xx'
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.
что мне сделать, чтобы преодолеть эту ошибку