我正在做一次提交并注意到我犯了一个错误。由于关闭nano会改变,我强制关闭终端。这使.swp文件遗留在某个地方,阻止我将来提交:
*** Error in `nano': malloc(): memory corruption (fast): 0x000000000204a990 ***
error: nano died of signal 6
error: There was a problem with the editor 'nano'.
Please supply the message using either -m or -F option.
答案 0 :(得分:4)
该文件位于.git文件夹中,该文件名为" COMMIT_EDITMSG"。
要解决此问题,请转到项目的主文件夹,然后键入:
$ rm ./.git/.COMMIT_EDITMSG.swp
答案 1 :(得分:-1)
如果要更改提交消息,可以使用此命令
public List<String> getAllContacts(){
final List<String> contacts_id = new ArrayList<String>();
final List<String> contacts_name = new ArrayList<String>();
Backendless.Data.of(BackendlessUser.class).find(new AsyncCallback<BackendlessCollection<BackendlessUser>>() {
public void handleResponse(BackendlessCollection<BackendlessUser> users) {
Iterator<BackendlessUser> userIterator = users.getCurrentPage().iterator();
while (userIterator.hasNext()) {
BackendlessUser user = userIterator.next();
String user_mail = user.getEmail();
String user_id = user.getUserId();
contacts_name.add(user_mail);
contacts_id.add(user_id);
}
Log.d("getAllContacts: ", String.valueOf(contacts_name)); }
public void handleFault(BackendlessFault backendlessFault) {
System.out.println("Server reported an error - " + backendlessFault.getMessage());}});
return contacts_name;
}
这将允许您修改提交以及本地分支上的提交消息。 修改后,将分支推送到远程存储库以反映其中的更改。