1

私がgitを使用するのはこれが初めてです(bitbucket.orgで-それが違いを生む場合)。いくつかのオーディオファイルをレポにコミットしましたが、明らかにそこには望んでいません。パスを .gitignore に追加して、これがそれ以上の変更のみを無視することを確認しました。だから私はこのSOの質問に出くわし、そこで言及されているDavid Underhillのスクリプトを使用しようとしました.

ただし、次のメッセージが表示されgit commitます。

# On branch master
# Your branch and 'origin/master' have diverged,
# and have 10 and 10 different commits each, respectively.
#
nothing to commit (working directory clean)

そしてgit push

 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to 'https://bitbucket.org/abc/def'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes (e.g. 'git pull') before pushing again.  See the
'Note about fast-forwards' section of 'git push --help' for details.

だから私はgit push --force成功しましたが、実際にはレポで何も変更せず、そこにも表示されませんでした。

どうすればこれを修正できるか知っていますか?

4

1 に答える 1