After you’ve added new files to the Git repository, or modified files that are already under Git version control and you are happy with their current state, you can share the results of your work. This involves committing them locally to record the snapshot of your repository to the project history, and then pushing them to the remote repository so that they become available to others.
Set your Git username
Git needs to know your username to associate commits with an identity. If you have not set your username, IntelliJ IDEA will prompt you to specify it when you first attempt to commit changes.
-
Open the Terminal and execute one of the following commands:
-
To set a name for every Git repository on your machine, use
$ git config --global user.name "John Smith" -
To set a name for a single repository, use
$ git config user.name "John Smith"
-
Commit changes locally
-
Open the vertical Commit tool window Alt+0 located on the left:

-
As your changes are ready to be committed, select the corresponding files or an entire changelist.
If you press Ctrl+K, the entire active changelist will be selected.
You can also select files under the Unversioned Files node — IntelliJ IDEA will stage and commit these files in one step.
-
If you want to append local changes to the latest commit instead of creating a separate commit, select the Amend option.
-
Enter the commit message. You can click
to choose from the list of recent commit messages.
You can also edit the commit message later before you’ve pushed the commit.
-
If you need to perform pre-commit checks, upload files to a server after the commit, or commit with advanced options, click
:

The following options are available:
-
Author: if you are committing changes made by another person, you can specify the author of these changes.
-
Sign-off commit: select if you want to sign off your commit to certify that the changes you are about to check in have been made by you, or that you take the responsibility for the code you’re committing.
When this option is enabled, the following line is automatically added at the end of the commit message: Signed off by: <username>
-
In the Before Commit area, select the actions you want IntelliJ IDEA to perform before committing the selected files to the local repository.
The following options are available:
-
Reformat code: perform code formatting according to the Project Code Style settings.
-
Rearrange code: rearrange your code according to the arrangement rules preferences.
-
Optimize imports: remove redundant import statements.
-
Analyze code: analyze modified files before committing them. Click Choose profile to select an inspection profile from which the IDE will run inspections.
-
Check TODO (<filter name>): Review the TODO items matching the specified filter. Click Configure to choose an existing TODO filter, or open the TODO settings page and define a new filter to be applied.
-
Cleanup: batch-apply quick-fixes from code cleanup inspections. Click Choose profile to select a profile from which the IDE will run inspections.
-
Run Tests: run tests as pre-commit checks. Click Choose configuration near Run Tests and select which configuration you want to run.
-
Update copyright: add or update a copyright notice according to the selected copyright profile — scope combination.
-
-
In the After Commit area, you can select the server access configuration or a server group to use for uploading the committed files to a local or remote host, a mounted disk, or a directory. See Deploy your application for details.
The following options are available:
-
Run tool: select the external tool that you want IntelliJ IDEA to launch after the selected changes have been committed. You can select a tool from the list, or click the Browse button
and configure an external tool in the External Tools dialog that opens.
-
Upload files to: select the server access configuration or a server group to use for uploading the committed files to a local or remote host, a mounted disk, or a directory.
-
To suppress uploading, choose None.
-
To add a server configuration to the list, click
and fill in the required fields in the Add Server dialog that opens.
The list is only available if the FTP/SFTP/WebDAV Connectivity plugin is enabled.
-
-
Always use selected server or group of servers: always upload files to the selected server or a server group.
The checkbox is only available if the FTP/SFTP/WebDAV Connectivity plugin is enabled.
-
-
-
When you’re ready, click Commit or Commit and Push (Ctrl+Alt+K) to push the changes to the remote repository immediately after the commit. You will be able to review the current commit as well as all other commits before they are pushed to the remote.
Commit part of a file
Sometimes when you make changes that are related to a specific task, you also apply other unrelated code modifications that affect the same file. Including all such changes into one commit may not be a good option, since it would be more difficult to review, revert, cherry-pick them, and so on.
IntelliJ IDEA lets you commit such changes separately in one of the following ways:
-
select modified code chunks, that you want to include in a commit right in the Commit Changes dialog and leave other changes pending so that you can commit them later.
-
put different code chunks into different changelists on the fly, when you edit code, and then commit these changelists separately.
Select chunks you want to commit
-
Open the vertical Commit tool window Alt+0.
-
To display the differences between the repository version and the local version of the selected file, in the Commit tool window Alt+0, click
on the toolbar or press Ctrl+D.
-
Select the checkbox next to each chunk of modified or newly added code that you want to commit, and leave other changes unselected:

-
Click Commit. Unselected changes will stay in the current changelist, so that you can commit them separately.
Put changes into different changelists
-
When you make a change to a file in the editor, click the corresponding change marker in the gutter.
-
In the toolbar that appears, select the target changelist for the modified code chunk (or create a new changelist):

-
Commit each changelist separately.
Use the Git staging area to commit changes
If you are more used to the concept of staging changes for commit instead of using changelists where modified files are staged automatically, select the Enable staging area option on the Version Control | Git page of the IDE settings Ctrl+Alt+S.
The Commit tool window will now look as follows:

Using the staging area allows you to easily commit changes to the same file separately (including overlapping changes), and see which changes are already staged without switching focus from the editor.
Stage changes for commit
-
Do one of the following:
-
To stage an entire file, in the Commit tool window Alt+0, select this file and click
on the right next to it or press Ctrl+Alt+A.

-
To stage a specific chunk inside a file, in the editor click the change marker in the gutter next to the modified chunk and click Stage.

Staged changes (including changes staged from outside IntelliJ IDEA) are marked with a border-shaped change marker in the editor:

-
To stage granular changes like a single line instead of a code chunk, or even one of a number of changes to a single line, in the Commit tool window Alt+0, select the file containing the change and choose Compare HEAD, Staged and Local Versions from the context menu.
This will open a three-way diff viewer where the left pane shows the repository version, the right pane shows the local version, and the central pane is a fully-functional editor where you can make the changes you want to stage.

-
-
When ready, commit the changes as described in Commit changes locally.
Push changes to a remote repository
Before pushing your changes, sync with the remote and make sure your local copy of the repository is up-to-date to avoid conflicts.
IntelliJ IDEA allows you to upload changes from any branch to its tracked branch or to any other remote branch.
-
Do one of the following:
-
To push changes from the current branch press Ctrl+Shift+K or choose from the main menu.
-
To push changes from any local branch that has a remote, select this branch in the Branches popup and choose Push from the list of actions.
The Push Commits dialog opens showing all Git repositories (for multi-repository projects) and listing all commits made in the current branch in each repository since the last push.
If you have a project that uses multiple repositories that are not controlled synchronously, only the current repository is selected by default (for details on how to enable synchronous repositories control, refer to Version Control Settings: Git).
-
-
If there are no remotes in the repository, the Define remote link appears. Click this link and specify the remote name and URL in the dialog that opens. It will be saved and you can edit it later via (for details, see Add a remote repository).
-
If you want to modify the target branch where you want to push, you can click the branch name. The label turns into a text field where you can type an existing branch name, or create a new branch. You can also click the Edit all targets link in the bottom-right corner to edit all branch names simultaneously.
Note that you cannot change the local branch: the current branch for each selected repository will be pushed.
-
If you have some commits you’ve made but not yet want to push to a remote branch, in the Log tab of the Git tool window select the last commit you want to push and choose Push All up to Here… option from the list of actions.
The Push Commits dialog opens showing all commits up to the selected commit hash.
-
If you want to preview changes before pushing them, select the required commit. The right-hand pane shows the changes included in the selected commit. You can use the toolbar buttons to examine the commit details.
If the author of a commit is different from the current user, this commit is marked with an asterisk.
-
Click the Push button when ready and select which operation you want to perform from the drop-down menu: Push or Force push (equivalent to
push --force-with-lease).These choice options are only available if the current branch is not listed in the Protected branches field (see Version Control Settings: Git), otherwise, you can only perform the
pushoperation.
Update your working copy if push is rejected
If push is rejected because your working copy is outdated, IntelliJ IDEA displays the Push Rejected dialog, provided that the Auto-update if push of the current branch was rejected option in the Git settings page of the Settings dialog is not selected. Do the following:
-
If your project uses several Git repositories, specify which of them you want to update. If you want to update all repositories, no matter whether push was rejected for them or not, select the Update all repositories option. If this option is cleared, only the affected repositories will be updated.
-
If you want IntelliJ IDEA to apply the update procedure silently the next time push is rejected using the update method you choose in this dialog, select the Remember the update method choice and silently update in the future option.
After you leave this dialog, the Auto-update if push of the current branch was rejected checkbox in the Git settings page of the Settings dialog will be selected, and the applied update method will become the default one.
To change the update strategy, deselect this option to invoke the Push Rejected dialog the next time push of the current branch is rejected, apply a different update procedure, and select the Remember the update method choice option once again.
-
Select the update method (rebase or merge) by clicking the Rebase or Merge button respectively.
When do I need to use force push?
When you run push, Git will refuse to complete the operation if the remote repository has changes that you are missing and that you are going to overwrite with your local copy of the repository. Normally, you need to perform pull to synchronize with the remote before you update it with your changes.
The --force push command disables this check and lets you overwrite the remote repository, thus erasing its history and causing data loss. Under the hood, when you choose to force push, IntelliJ IDEA performs the push --force-with-lease operation which is a safer option that helps you ensure you do not overwrite someone else’s commits (see git push for more details on the push options).
A possible situation when you may still need to perform --force push is when you rebase a pushed branch and then want to push it to the remote server. In this case, when you try to push, Git will reject your changes because the remote ref is not an ancestor of the local ref. If you perform pull in this situation, you will end up with two copies of the branch which you then need to merge.
Last modified: 10 November 2022
Is there any way to set default Git commit message or commit message template in IntelliJ?
For example I would like that every commit message will look like:
- Commit subject:
- Feature:
- Reviewer:
asked Jan 21, 2014 at 7:37
4
Try Commit Message Template plugin
After you install , follow the instructions :
Set a template: Open Settings > Tools > Commit Message Template and
enter the desired template or set the path to a template file.If you set something in the comment characters, any line in the
template file that starts with that character will be ignored when
building the message
answered Jul 12, 2017 at 8:52
JaskeyLamJaskeyLam
15k19 gold badges112 silver badges146 bronze badges
0
I would recommend you the Plugin «Git Commit Message Plugin»:
https://plugins.jetbrains.com/plugin/10100-git-commit-message-plugin
it’s easy to use and allows templates to autofill from your branchname (like a ticket id or name):
The template description:
«The following template placeholders are supported: ${ticket} — The
ticketId (default: Git Branch Name). ${shortDescription} — Title or
short commit description. ${longDescription} — A detailed commit
description.»
answered Sep 22, 2020 at 12:23
RoddeRodde
213 bronze badges
When I try to commit my project from within IntelliJ IDEA, it’s showing an error message like
this:
error: insufficient permission for adding an object to repository database .git/objects
error: Sample2/.idea/vcs.xml: failed to insert into database
error: unable to index file Sample2/.idea/vcs.xml
fatal: updating files failed
I am working in Ubuntu 10.10 and I logged in as a user with admin permissions.
Repository for git is my project folder itself which is in my local system.
Please help me to get out of this.
asked Apr 29, 2011 at 18:25
2
Looks like permissions issue of your local git clone. Try chown -R user:user /project/directory (where user is your account name) to ensure that IDEA running under non-root account has write permissions in the project directory including .git subdirectory.
answered Apr 30, 2011 at 10:56
CrazyCoderCrazyCoder
382k168 gold badges964 silver badges881 bronze badges
When I try to commit my project from within IntelliJ IDEA, it’s showing an error message like
this:
error: insufficient permission for adding an object to repository database .git/objects
error: Sample2/.idea/vcs.xml: failed to insert into database
error: unable to index file Sample2/.idea/vcs.xml
fatal: updating files failed
I am working in Ubuntu 10.10 and I logged in as a user with admin permissions.
Repository for git is my project folder itself which is in my local system.
Please help me to get out of this.
asked Apr 29, 2011 at 18:25
2
Looks like permissions issue of your local git clone. Try chown -R user:user /project/directory (where user is your account name) to ensure that IDEA running under non-root account has write permissions in the project directory including .git subdirectory.
answered Apr 30, 2011 at 10:56
CrazyCoderCrazyCoder
382k168 gold badges964 silver badges881 bronze badges
After you’ve added new files to the Git repository, or modified files that are already under Git version control and you are happy with their current state, you can share the results of your work. This involves committing them locally to record the snapshot of your repository to the project history, and then pushing them to the remote repository so that they become available to others.
Commit changes locally
-
Select the files you want to commit or an entire changelist in the Local Changes tab of the Version Control window Alt+9 and press Ctrl+K or click
on the toolbar. The Commit Changes dialog opens that lists all files that have been modified since the last commit, and all newly added unversioned files.
-
Review the list of files to be committed, clear checkboxes next to files and directories that you don’t want to include in the commit. Changes in the excluded files will remain in the active changelist and you can commit them later.
-
Enter a commit message.
You can click
to choose from the list of recent commit messages. You can edit the commit message before you’ve pushed a commit.
-
If necessary, select the Before Commit actions you want IntelliJ IDEA to perform before committing the selected files to the local repository.
-
Select the following options in the Git section if necessary:
-
Author: if you are committing changes made by another person, you can specify the author of these changes.
-
Amend commit: adds local changes to the latest commit (see Combine staged changes with the previous commit (amend commit) for details).
-
Sign-off commit: select if you want to sign off your commit to certify that the changes you are about to check in have been made by you, or that you take the responsibility for the code you’re committing.
When this option is enabled, the following line is automatically added at the end of the commit message: Signed off by: <username>
-
-
Click Commit or hover the mouse over this button to display the available commit options:
-
Commit and Push: push the changes to the remote repository immediately after the commit.
You can also press Ctrl+Alt+K to invoke the Commit and Push action from the Commit dialog.
-
Create Patch: generate a patch based on the changes you are about to commit. In the Create Patch dialog that opens, type the name of the patch file and specify whether you need a reverse patch.
-
Remote Run: run your personal build. This option is only available when you are logged in to TeamCity. Refer to TeamCity plugin documentation for details.
-
Commit part of a file
Sometimes when you make changes that are related to a specific task, you also apply other unrelated code modifications that affect the same file. Including all such changes into one commit may not be a good option, since it would be more difficult to review, revert, cherry-pick them, and so on.
IntelliJ IDEA lets you commit such changes separately in one of the following ways:
-
select modified code chunks, that you want to include in a commit right in the Commit Changes dialog and leave other changes pending so that you can commit them later.
-
put different code chunks into different changelists on the fly, when you edit code, and then commit these changelists separately.
Select chunks you want to commit
-
Invoke the Commit Changes dialog.
-
Click Diff to display the differences between the repository version and the local version of the selected file.
-
Select the checkbox next to each chunk of modified or newly added code that you want to commit, and leave other changes unselected:
-
Click Commit. Unselected changes will stay in the current changelist, so that you can commit them separately.
Put changes into difference changelists
-
When you make a change to a file in the editor, click the corresponding change marker in the gutter.
-
In the toolbar that appears, select the target changelist for the modified code chunk (or create a new changelist):
-
Commit each changelist separately.
Push changes to a remote repository
Before pushing your changes, sync with the remote and make sure your local copy of the repository is up-to-date to avoid conflicts.
IntelliJ IDEA allows you to upload changes from the current branch to its tracked branch or to any other remote branch.
-
Press Ctrl+Shift+K or choose VCS | Git | Push from the main menu. The Push Commits dialog opens showing all Git repositories (for multi-repository projects) and listing all commits made in the current branch in each repository since the last push.
If you have a project that uses multiple repositories that are not controlled synchronously, only the current repository is selected by default (for details on how to enable synchronous repositories control, refer to Version Control Settings: Git).
-
If there are no remotes in the repository, the Define remote link appears. Click this link and specify the remote name and URL in the dialog that opens. It will be saved and you can edit it later via VCS | Git | Remotes (for details, see Add a remote repository).
-
If you want to modify the target branch where you want to push, you can click the branch name. The label turns into a text field where you can type an existing branch name, or create a new branch. You can also click the Edit all targets link in the bottom-right corner to edit all branch names simultaneously.
Note that you cannot change the local branch: the current branch for each selected repository will be pushed.
-
If you want to preview changes before pushing them, select the required commit. The right-hand pane shows the changes included in the selected commit. You can use the toolbar buttons to examine the commit details.
-
Click the Push button when ready and select which operation you want to perform from the drop-down menu: Push or Force push.
These choice options are only available if the current branch is not listed in the Protected branches field (see Version Control Settings: Git), otherwise, you can only perform the
pushoperation.
Update your working copy if push is rejected
If push is rejected because your working copy is outdated, IntelliJ IDEA displays the Push Rejected dialog, provided that the Auto-update if push of the current branch was rejected option in the Git settings page of the Settings Preferences dialog is not selected. Do the following:
-
If your project uses several Git repositories, specify which of them you want to update. If you want to update all repositories, no matter whether push was rejected for them or not, select the Update not rejected repositories as well option. If this option is cleared, only the affected repositories will be updated.
-
If you want IntelliJ IDEA to apply the update procedure silently the next time push is rejected using the update method you choose in this dialog, select the Remember the update method choice and silently update in the future option.
After you leave this dialog, the Auto-update if push of the current branch was rejected checkbox in the Git settings page of the Settings Preferences dialog will be selected, and the applied update method will become the default one.
To change the update strategy, deselect this option to invoke the Push Rejected dialog the next time push of the current branch is rejected, apply a different update procedure, and select the Remember the update method choice option once again.
-
Select the update method (rebase or merge) by clicking the Rebase or Merge button respectively.
When do I need to use force push?
When you run push, Git will refuse to complete the operation if the remote repository has changes that you are missing and that you are going to overwrite with your local copy of the repository. Normally, you need to perform pull to synchronize with the remote before you update it with your changes.
The --force push command disables this check and lets you overwrite the remote repository, thus erasing its history and causing data loss.
A possible situation when you may still need to perform --force push is when you rebase a pushed branch and then want to push it to the remote server. In this case, when you try to push, Git will reject your changes because the remote ref is not an ancestor of the local ref. If you perform pull in this situation, you will end up with two copies of the branch which you then need to merge.
If you decide to force push the rebased branch and you are working in a team, make sure that:
-
Nobody has pulled your branch and done some local changes to it
-
All pending changes have been committed and pushed
-
You have the latest changes for that branch
Last modified: 29 November 2019
Как пользователь newbie git, когда я пытаюсь выполнить свою работу с помощью
git commit -a -v
и я ввожу сообщение фиксации в свой редактор, я закрываю файл и получаю эту ошибку:
Aborting commit due to empty commit message.
Я прочитал почти все темы, посвященные этой проблеме, изменил редакторы, в основном пробовал все, но ничего не помогает. Что мне делать?
Одна вещь, которую я заметил, при попытке всего процесса с помощью блокнота ++, файл не мог быть сохранен.
Возможным обходным путем является следующее:
git commit -am "SomeComment"
Но, делая это, я чувствую, что я свожу на нет цель использования git. Я хочу правильно документировать свои изменения.
Ответ 1
Когда вы устанавливаете редактор в конфигурации Git, обязательно передайте параметр «-w», чтобы заставить Git ждать ваше сообщение фиксации, которое вы наберете в своем настраиваемом редакторе.
git config --global core.editor "[your editor] -w"
Ответ 2
Эта ошибка может произойти, если ваш комментарий коммита — это одна строка, начинающаяся с символа #. Например, я получил эту ошибку, когда в моем текстовом редакторе текстовых сообщений сообщения комментировал следующее:
#122143980 - My commit message was here. The number to the left is a Pivotal Tracker story/ticket number that I was attempting to reference in the commit message.
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch [MYBRANCH]
# Your branch is up-to-date with 'origin/[MYBRANCH]'.
#
# Changes to be committed:
# modified: [MYFILE1]
# modified: [MYFILE2]
#
Проблема, конечно, в том, что мое сообщение commit начиналось с символа #, поэтому git видел эту строку как комментарий и, следовательно, видел сообщение commit как пустое, так как у него было только комментарии!
Исправление должно было начаться с моего сообщения с символом, отличным от #.
В моем конкретном случае включение идентификатора Pivotal в квадратных скобках сделало как git, так и Pivotal счастливым:
[#122143980] My commit message here.
Ответ 3
Для кода Visual Studio
git config --global core.editor "code -w"
Для атома
git config --global core.editor "atom -w"
Для возвышенного
git config --global core.editor "subl -w"
Ответ 4
Если вы хотите зафиксировать правильную (длинную, многострочную комментариев) документацию, но не хотите использовать параметр -m, что вы можете сделать (и что я делаю при подготовке мои коммиты):
- напишите свою документацию (при внесении изменений) в отдельный файл ‘doc-commit’ (или любое другое имя, которое вы хотите назвать)
- совершить с ‘
git commit -a -F /path/to/doc-commit‘)
Короче говоря, используйте отдельный файл (который может быть любым желаемым путем) в качестве сообщения о фиксации.
Ответ 5
Я тоже новичок в Git. Я столкнулся с той же проблемой, что и ваша. Я решил это, набрав:
git commit -a -m 'some message'
Причина в том, что git не разрешает фиксацию без сообщений. Вы должны связать некоторые сообщения с вашей командой commit.
Ответ 6
У меня была эта проблема. Я только что установил 1.8.0 раньше, и я обнаружил, что мне пришлось немного модифицировать это. Я очень много нового, но по сути кажется, что при совершении он будет использовать content.editor, а не core.editor, по крайней мере, если у вас есть что-то настроенное для content.editor.
Итак, это было
git config --global content.editor "pico -w"
что, наконец, позвольте мне совершить!
Разумеется, конечно, используйте любой редактор, который вы используете.
Надеюсь, это когда-нибудь поможет кому-нибудь!
Ответ 7
git не разрешает фиксацию без сообщения. Вы указали сообщение фиксации в диалоге фиксации?
Обратите внимание, что строки, начинающиеся С#, обрабатываются как комментарии git и не рассматриваются как комментарии и игнорируются Git.
Ответ 8
На машине Windows для редактора «Sublime» мы также можем добавить следующую строку в файле .gitconfig в следующей папке [ВАШЕ ДИСКОВОЙ ПИСЬМО]:/users/username/
[core]
editor = '[YOUR DRIVE LETTER]:/Program Files/Sublime Text [YOUR VERSION NUMBER]/sublime_text.exe' --wait
Надеюсь, что это поможет.
Ответ 9
Я сконфигурировал свой атомный редактор как
git config --global core.editor "atom --wait"
но когда я сделал
git commit
когда атом уже был запущен, он открыл новую вкладку для добавления комментариев, но git не ожидал, что я сохраню файл и вытащу сообщение «Отменить» мгновенно. Когда я закрыл атом и попытался совершить еще один раз, git запустил атом и ждал добавления комментариев.
Ответ 10
Сначала удалите старые записи редакторов:
git config --global --unset-all core.editor
git config --unset-all core.editor
Задайте свой редактор:
-
Для Notepad ++
git config --global core.editor "Notepad++ -w" git config core.editor "Notepad++ -w" -
Для возвышенного
git config --global core.editor "Notepad++ -w" git config core.editor "subl -w"
Ответ 11
Для комментариев к Notepad ++ (Windows) выполните следующее:
1. Создайте пакетный файл где-нибудь (например, c:Usersmescriptsnpp.bat)
Запишите это в пакетном файле (в зависимости от того, где установлен ваш Notepad ++):
"C:Program FilesNotepad++notepad++.exe" -multiInst -notabbar -nosession -noPlugin "$*"
2. Сохранить пакетный файл.
3. Откройте .gitconfig(который обычно находится в папке пользователя Windows) и убедитесь, что
в разделе [core]:
editor = '"c:\Users\me\scripts\npp.bat"'
Или запустите:
git config --global core.editor '"c:Usersmescriptsnpp.bat"'
4. Теперь выполните фиксацию какого-либо типа, и он откроет Notepad ++, git commit теперь будет ждать закрытия окна «Блокнот ++».
Ответ 12
Удостоверьтесь, что столица W.
git config —global core.editor «open -a ‘Sublime Text 2’ -W»
или используйте следующую команду, чтобы заменить существующую, которая не работает должным образом.
git config —replace-all core.editor «open -a ‘Sublime Text 2’ -W»
Ответ 13
Ожидается сообщение о коммите.
Для vim: (я тоже новичок. До сих пор я работал только с vim)
После вашей команды,
git commit -v
Вы будете перенаправлены в файл с именем
«.Git/COMMIT_EDITMSG»
Это открывается в вашем редакторе (который в моем случае vim)
Вы найдете много комментариев, которые выглядят точно так же, как вы видели, когда делали
git status OR
git diff
Если вы заметили, вы можете увидеть пустую строку сверху — там, где ожидается сообщение о коммите.
Вы можете ввести здесь сообщение о коммите и сохранить & выйти из редактора. Это было сделано!
Ответ 14
Я исправил проблему, переключившись с моего любимого редактора MacVim, который открывает новое окно, на стандартный vim vim в /user/bin/vim, который открывается в том же окне, что и оболочка, откуда он вызывается, и это кажется чтобы устранить проблему.
Ответ 15
У меня возникла эта проблема, и я обнаружил, что если я не оставляю комментарий после коммита, это выдает мне эту ошибку. Если я сразу перехожу к главному bash, он не фиксируется. Просто чтобы быть более понятным, я использую GIT Bash, а не другой редактор
Ответ 16
Когда я использовал полный путь к файлу Atom, он не работал, поэтому вместо использования:
git config --global core.editor "c:/programs/atom/atom.exe -w"
Я использовал:
git config --global core.editor "atom -w"
и все работало просто отлично. Удачи!
ВАЖНО: Сначала убедитесь, что atom начинает правильно вызывать его (atom) из командной строки, которую вы используете.