私は2つのファイルのマージを行いましたが、今はコミットしようとしていますが、次のデータでVIMを開いてしまいました。 (私はVIMの経験がありません)マージ後にGit Commitが開きますVIM
Merge branch 'master' of nodester.com:/node/git/lolcoder/****-******
Conflicts:
.gitignore
server.js
#
# It looks like you may be committing a merge.
# If this is not correct, please remove the file
# .git/MERGE_HEAD
# and try again.
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch master
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# .project
~
~
~
".git/COMMIT_EDITMSG" 19L, 521C 1,1 All
ここからは何ができますか?ここで
はシナリオです:
私は今、私は(私は今、私のプロジェクトのための2つのリモコンを持っている)nodesterのGitのレポにこれをプッシュしようとしている、githubの上のNode.jsプロジェクトを持っていました。しかし、私がnodesterにプッシュする前に、私はnodeterで生成されたものと矛盾する2つのファイルを修正する必要がありました。私はgit merge -y
との衝突を解決し、今私は押してコミットしたい。
これはnodesterにプッシュしようとしたとき、私は取得エラーです:
Nodester!
To [email protected]:/node/git/lolcoder/****-**************.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to '[email protected]:/node/git/lolcoder/****-************.git'
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.
これはnode.jsやnodsterとは関係がありません。適切なタグだけを使用してください。この場合はGITです。 – thenetimp
これはgitの「悪い」機能だと思います。単に自動化を少なくしています。そして、再び自動化するためにgitコマンドをラップする必要があります。 - メッセージ "save"は私のために働きます。 –