DEV Community

Cover image for Adding a git commit message using vi on macOS
Edson Junior de Andrade
Edson Junior de Andrade

Posted on

3 1

Adding a git commit message using vi on macOS

You must have already gone through the situation of having entered vi at the time of a commit and not knowing how to finalize it, below I leave a sequence that will help you with that

1 - Type i
2 - Write your message
3 - Type the ESC key
4 - Type :wq

DONE!
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Eliminate Context Switching and Maximize Productivity

Pieces.app

Pieces Copilot is your personalized workflow assistant, working alongside your favorite apps. Ask questions about entire repositories, generate contextualized code, save and reuse useful snippets, and streamline your development process.

Learn more