gitTakım ortamında kodumuzu yönetmek için şu anda onu kullanmak konusunda oldukça yeniyim . Bazı yeniden ödeme sorunlarım vardı ve bunları kullanarak düzelttim
git checkout --ours filename.txt
git add filename.txt
git rebase --continue
Şimdi değişikliklerimi zorlamak istiyorum ve bu nedenle aşağıdaki komutu çalıştırıyorum
$ git push origin feature/my_feature_branch
bana şu hatayı veriyor:
To ssh://git@coderepo.com:7999/repo/myproject.git
! [rejected] feature/my_feature_branch -> feature/my_feature_branch (non-fast-forward)
error: failed to push some refs to 'ssh://git@coderepo.com:7999/repo/myproject.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Merge the remote changes (e.g. 'git pull')
hint: before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Hatadan kurtulmak için ne yapabilirim?
Not: Bu --forceseçeneği olabildiğince kullanmaktan kaçınıyorum .