Normally when making a git commit I use git commit -m "message"
. However, in some cases git prepopulates a commit message, such as after resolving a conflict during a merge. Is there a way that I can specify via the command line that I would like to accept this default commit message, without opening an editor?
Asked
Active
Viewed 154 times
2

Alex Flint
- 6,040
- 8
- 41
- 80
1 Answers
5
git commit --no-edit
Works if, for example, you merged (with -m) but there were conflicts that had to be taken care of. Probably works on other cases as well.

eftshift0
- 26,375
- 3
- 36
- 60