1

私は、win7 で組み込みの NetBeans サポートを使用する新しい GIT ユーザーです。プロジェクト ファイルにいくつかの変更を加えました。それらをリモートサーバーにプッシュしようとすると、翌年になります。

git push git@bitbucket.org:******/**.git +refs/heads/master:refs/heads/master
Remote Repository Updates
Branch : master
Old Id : f2f9c7d23813d4ccc838d9aa0abd4875*******
New Id : 9277c9b01cf8d1aaff23003ce771cf*******
Result : REJECTED_NONFASTFORWARD

 Local Repository Updates
 Branch : origin/master
 Old Id : f2f9c7d23813d4ccc838d9aa0abd4875******
 New Id : 9277c9b01cf8d1aaff23003ce771cf*******
 Result : NOT_ATTEMPTED

 ==[IDE]== Nov 13, 2012 1:14:35 PM Pushing finished.

誰かが何が起こっているのか説明できますか?次に何をすべきかわかりません。

前もって感謝します、

明細書

4

1 に答える 1

1

Git は、最後に同期してからリモート リポジトリに更新があったことを示しています。これらの変更を (Netbean に相当するものを使用してgit pull) ローカル システムにプルし、それらをローカル リポジトリに統合する必要があります。その後、リモート リポジトリにプッシュできるようになります。

これはgit push、この場合のコマンド ラインの内容です。

error: failed to push some refs to 'remote.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.

そして、マニュアルページの関連部分には次のように書かれています:

早送りについての注意

   When an update changes a branch (or more in general, a ref) that used
   to point at commit A to point at another commit B, it is called a
   fast-forward update if and only if B is a descendant of A.

   In a fast-forward update from A to B, the set of commits that the
   original commit A built on top of is a subset of the commits the new
   commit B builds on top of. Hence, it does not lose any history.
于 2012-11-13T18:28:57.950 に答える