Tôi đã hợp nhất 2 tệp và bây giờ tôi đang cố gắng cam kết nhưng nó sẽ mở VIM với dữ liệu sau và bây giờ tôi hoàn toàn bị mất. (Tôi không có kinh nghiệm với VIM)Git Cam kết sau khi hợp nhất mở 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
Tôi phải làm gì từ đây?
Dưới đây là kịch bản:
Tôi đã có một dự án Node.js trên github, bây giờ tôi đang cố gắng để đẩy này để repo git nodester của (vì vậy bây giờ tôi có 2 điều khiển từ xa cho dự án của tôi). Nhưng trước khi tôi có thể chuyển sang gật đầu, tôi cần phải sửa 2 tập tin mâu thuẫn với những tập tin được tạo ra trên nodester cho tôi. Tôi đã giải quyết các xung đột với git merge -y
và bây giờ tôi muốn cam kết sau đó đẩy.
Đây là lỗi tôi nhận được khi cố gắng chuyển đến 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.
Điều này không liên quan gì đến node.js hoặc nodster, vui lòng chỉ sử dụng các thẻ thích hợp. Trong trường hợp này GIT. – thenetimp
Tôi nghĩ rằng đây là một tính năng "xấu" của git. Nó chỉ làm cho nó ít tự động hóa.Và tôi phải bọc lệnh git để làm cho nó tự động hóa một lần nữa.' - tin nhắn "lưu" 'hoạt động cho tôi. –